Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have this DAX
idUser | Sales | Rank |
56 | 10000 | 1 |
55 | 9000 | 2 |
214 | 5000 | 3 |
59 | 4500 | 4 |
874 | 2600 | 5 |
68 | 2000 | 6 |
965 | 1900 | 7 |
57 | 1800 | 8 |
63 | 1500 | 9 |
54 | 1000 | 10 |
idUser | Sales | Market | Rank | Rank Expected |
56 | 10000 | alpha | 1 | 1 |
55 | 9000 | beta | 1 | 2 |
214 | 5000 | zeta | 1 | 3 |
59 | 4500 | zeta | 2 | 4 |
874 | 2600 | beta | 2 | 5 |
68 | 2000 | alpha | 2 | 6 |
965 | 1900 | alpha | 3 | 7 |
57 | 1800 | beta | 3 | 8 |
63 | 1500 | zeta | 3 | 9 |
54 | 1000 | alpha | 4 | 10 |
Create two measures like:
Hi @youconnect ,
Could you give me a sample data model?
I need to know which columns do users_ table and sales_table have?and what's the relationship between the two tables?
Best Regards,
Lionel Chen
The formula you provided, seems to have a issue.
I think it should be created as a column not measure.
Refer
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
Thanks for your respose.
I already saw the articles but without sucess.
Anybody can help me?
Thanks
Please check at : https://www.dropbox.com/s/vy0t74qwkuxhogf/rank_test.pbix?dl=0
refer: New Rank 1, New Rank 2
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |