Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello all.
I need to RankX my sales over Month/Year.
DAX is:
Hi @Roberto456 ,
Please try modifying ALL('(SQL) Cart'[Related_Year_Month]) to ALL('(SQL) Cart').
It's hard to find the solution only through the measure. Better to share your pbix or some sample data and expected result to us if you don't have any Confidential Information.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Before Sort by Column After Sort by Column
Hi @Roberto456 ,
Based on my test, if you are using "ALL(tablename[column1])" in your formula, you can only sort by column1 and if you sort by other column, the rank result would all be 1.
If i use "ALL(table)", the result won't be affected by sort by column.
Thus, please try modifying your formula according to your table structure.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
unfortunley that doesnt work because the year month field is in transaCtion table and there are multiple values.
If I rank on a calendar table the rank wont update for filters.
Hi @Roberto456 ,
Better to share your pbix to us if you don't have any Confidential Information. Otherwise it would be hard to find the problem. Please upload your files and share the link here.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
77 | |
75 | |
46 | |
31 | |
28 |
User | Count |
---|---|
99 | |
93 | |
50 | |
49 | |
46 |