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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

How to Create Index number on the visual

i need to create index number dynaically on the table visal.

eg: I'm having a price column , the price ciolumn should be in ascending order based on this in need index number 1,2,3,4.... dynamically till last row

note : The price column is calculate column

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

You can create a measure to rank the prices dynamically. Here are two blogs for your reference:

Showing Ranking in a Visual in Power BI using RANKX DAX function - RADACAD

Use of RANKX in Power BI measures - SQLBI

 

If you can provide some sample data & output and which section will be dynamic, we can try to provide DAX codes for the measure. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

You can create a measure to rank the prices dynamically. Here are two blogs for your reference:

Showing Ranking in a Visual in Power BI using RANKX DAX function - RADACAD

Use of RANKX in Power BI measures - SQLBI

 

If you can provide some sample data & output and which section will be dynamic, we can try to provide DAX codes for the measure. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

amitchandak
Super User
Super User

@Anonymous , Then max you can have at visual level is Rank(means you need measure). Use rank tie-breaker if needed

 

Rank Tie breaker
https://community.powerbi.com/t5/Community-Blog/Breaking-Ties-in-Rankings-with-RANKX-Using-Multiple-Columns/ba-p/918655
https://databear.com/how-to-use-the-dax-rankx-function-in-power-bi/

 

 

for column, index column in power query can be used

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors