Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
195 | |
80 | |
70 | |
51 | |
42 |