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
Anonymous
Not applicable

Indexing a Measure

Hello!

 

I have a meaure called CL which has distinct vaues to a respective Simulation Number.

 

Simulation NumberCL Measure
32300
33213

 

I have another table called Index which has an Index Column with values 1 - 100000. I hope to link my measure CL to the Index Table in an Ascending Order. So that the lowest value of CL Measure is linked to Index 1 and so on.

 

IndexCL MeasureSimulation Number
121333
230032

 

Kindly help if possible.

 

Thank you.

 

@Jimmy801 @parry2k @amitchandak @sanalytics @Anonymous 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Measure is dynamic, and the table is fixed, so the Measure cannot establish a relationship with the table.

You can use the RANKX function.

Index = RANKX(ALL('Table'),CALCULATE([CL Measure]),,ASC,Dense)

19.png

 

Best Regards,

Stephen Tao

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Measure is dynamic, and the table is fixed, so the Measure cannot establish a relationship with the table.

You can use the RANKX function.

Index = RANKX(ALL('Table'),CALCULATE([CL Measure]),,ASC,Dense)

19.png

 

Best Regards,

Stephen Tao

 

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

amitchandak
Super User
Super User

@Anonymous , Based on what I got.

With a measure like this you can use index in visual or as filter

 

sumx(filter(values(Simulation Number),Table[Measure] = Table2[Index]),[Measure])

 

As of now I treated as segmentation - https://youtu.be/CuczXPj0N-k

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
Anonymous
Not applicable

Hello Amit, thank you for taking the time to reply.

 

I may be missing something, but was not able to understand your formula. I do not understand what Table[Measure] refers to.

 

Please clarify if possible.

 

Thanks

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.