Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217117

TOP 10 across multiple tables?

$
0
0

Hi.

 

I want to show top 5 countries by sales but I don't how I can do this. This is my database design.

 

powerbi.png

 

 I currently have achieved a matrix that shows all country-sales like this:

 

COUNTRYSALES
Spain4.000.000
France3.500.000
etc.etc.

 

So, how could I show only top 5 countries by their sales?

I worked on another project where I used this function:

RANKX(
           ALLSELECTED(Table[Column]);
           [SumOfSmth];;
           0;
           Dense
)

 

but it was "to do a top" on one table, not across many tables Smiley Frustrated

 

Thank you!


Viewing all articles
Browse latest Browse all 217117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>