Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kaii
Helper I
Helper I

Need some help about Rankx

So I creadted a measure to Rank each ID based on their sales/month by using Rankx.
Now I tried to calculated the difference between each rank? Like Rank2 is 2 less than rank 1, rank 3 is 1 less than rank 2 etc etc?

Thanks in advance

1 REPLY 1
AbbasG
Memorable Member
Memorable Member

https://learn.microsoft.com/en-us/dax/rankx-function-dax

 

@Kaii refer to the above documentation. Hope it helps.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.