The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I am trying to create a line chart for Top N Sales amount by Month.
When I use RankX function to Rank the Sales by Month Name it gives same rank for all 12 months.
Below is the DAX:
Rank_TopN = RankX(ALL(financials[Month Name]), Calculate(Sum(financials[Sales])), , Desc,Dense)
Any suggestions would be appreciated 🙂
Thanks!
Solved! Go to Solution.
Hi @Shv ,
Is Month Name a text string and being custom sorted by an other column? If so, include that in ALL as well.
https://www.sqlbi.com/articles/side-effects-in-dax-of-the-sort-by-column-setting/
Proud to be a Super User!
Hi @Shv ,
Is Month Name a text string and being custom sorted by an other column? If so, include that in ALL as well.
https://www.sqlbi.com/articles/side-effects-in-dax-of-the-sort-by-column-setting/
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
81 | |
72 | |
49 | |
40 |
User | Count |
---|---|
139 | |
119 | |
74 | |
64 | |
63 |