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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Fedup
Frequent Visitor

How would I have a stand alone column down from 1 2 3 etc to 20 This would tell what position a team

Screenshot 2025-12-15 172511.pngThe 1-20 would stay the same as each team goes up/down.

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Fedup 

Try visual calculation

Row =
IF ( ISATLEVEL ( [Team] ), ROWNUMBER ( ORDERBY ( [Sum of Points], DESC ) ) )

danextian_0-1765883774040.png

Format the calculation to whole number

danextian_1-1765883801427.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

9 REPLIES 9
v-prasare
Community Support
Community Support

As we haven't heard back from you, we would like you to please share the sample PBIX file shown above? This will help in understanding your scenario and providing an accurate solution.

 

 

Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support

danextian
Super User
Super User

Hi @Fedup 

Try visual calculation

Row =
IF ( ISATLEVEL ( [Team] ), ROWNUMBER ( ORDERBY ( [Sum of Points], DESC ) ) )

danextian_0-1765883774040.png

Format the calculation to whole number

danextian_1-1765883801427.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Ashish_Mathur
Super User
Super User

Hi,

This visual calcution measure works

S. No. with vis calc = if(ISATLEVEL([Presenter]),ROWNUMBER(ROWS,ORDERBY([Date Presented],ASC)))

Alternativel, this measure will work

S. No. = ROWNUMBER(ALLSELECTED(Data),ORDERBY(Data[Date Presented]))

Hope this helps.

Ashish_Mathur_0-1765855390398.png

 

 

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Royel
Super User
Super User

Hi @Fedup  use this dax measure to get the correct order 

 

Position = 
RANKX(
    ALL(Team),
    CALCULATE(MAX(Team[Points])),
    ,
    DESC,
    DENSE
)

 

Results: 

Royel_0-1765829076405.png

 

Thanks 

Fedup
Frequent Visitor

Screenshot 2025-12-22 192633.pngScreenshot 2025-12-22 192727.png

You need to create a measure and it should have correct Table and column name. Then use it in the table visual.

Create a measure: 

Select Table -> Right Click -> New Measure -> Pest the code 

Royel_0-1766432452366.png

 

Note: You can not directly run measure in DAX Query View, the format is littlebit different. 

 

Thanks

cengizhanarslan
Super User
Super User

You can use a visual calculation as below:

Rank = FORMAT ( RANKX ( ROWS, [Points], , DESC, Dense ), 0 )
 
or simply create a measure in your model as below and use it in your visual:
= RANKX ( ALLSELECTED ( DimTeam ), SUM ( [Points] ), , DESC, DENSE )
_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.
KarinSzilagyi
Super User
Super User

Hi @Fedup, you mean as a fixed index that shouldn't change as their ranking changes? 

If you don't have anything that you can order it by to maintain the order you predefined (e.g. not sorted by Name alphabetically) you can only really do this via Power Query Editor:

  • Transform Data > Add Column > Index Column > From 0 / From 1 / Custom (depending on whether your index should start with 0, 1 or any other number you'd like to start with
    KarinSzilagyi_0-1765821731016.png


Did I answer your question? If so, please consider marking my response as the ‘Accepted Solution’ - it helps others with the same issue find the answer more easily!
Zanqueta
Super User
Super User

Hi @Fedup 

If you want the position to reflect the ranking based on Points (and optionally Goal Difference), use a calculated column or measure in DAX:
 
Position =
RANKX(
    ALL('Teams'),
    'Teams'[Points],
    ,
    DESC,
    DENSE
) 

 

If this response was helpful in any way, I’d gladly accept a 👍much like the joy of seeing a DAX measure work first time without needing another FILTER.

Please mark it as the correct solution. It helps other community members find their way faster (and saves them from another endless loop 🌀.

If this response was helpful in any way, I’d gladly accept a kudo.
Please mark it as the correct solution. It helps other community members find their way faster.
Connect with me on LinkedIn

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.