Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
First, sorry for my english, im from brazil 🙂
So, im trying to create a view of a table like this:
I need to rank by the total, but when i try to do that it shows the rank in each month (Example: top N of january, top N of feb...)
I found this template that helped me to create the view only with the total, but now i dont know how to bring the top N of the total amount with the months columns: https://www.dropbox.com/s/59cct4in6zqbxaj/Sales%20Top%20Other.pbix?dl=1
Does anyone know how to do that?
Hi, @Anonymous ;
Hi, @Anonymous ;
Try to create a measure as follows:
Measure =
var _rank=
RANKX(FILTER(ALL(Table1),MONTH([Date])=MONTH(MAX([Date]))), CALCULATE(SUMX(FILTER(ALL(Table1),[country]=MAX([country])&&MONTH([Date])=MONTH(MAX([Date]))),[sales])),,DESC,Dense)
return IF(_rank<=MONTH(MAX([Date])),SUM([sales]))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. Please show the expected outcome.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
68 | |
60 | |
51 | |
36 | |
35 |
User | Count |
---|---|
84 | |
71 | |
56 | |
45 | |
43 |