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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
WheelchairWilly
Helper II
Helper II

What code should I use to show what position the teams hold? (1-20)

The 1-20 would be permanent to the left of the teams. Also could I have another column showing last weeks position? Screenshot 2023-09-30 170703.png

2 REPLIES 2
Dangar332
Super User
Super User

hi, @WheelchairWilly 

 try

rank = rankx('yourtable','yourtable'[points],'yourtable'[points],asc)

 

here you can also add skip and dense which help  ranks that correspond to elements in ties will be skipped; Dense – all elements in a tie are counted as one. for more information please visit here 

 

if you want to know more about rankx function then visit here 

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Thanks Dangar332. The RANKX formula does not work because it's too involved in what I want. From the Screenshot all I need is a column showing 1-20 rows. It doesn't need to follow a team because the teams move up/down.Screenshot 2023-10-02 105032.png

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.