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
DomantasK
Frequent Visitor

Dynamic indexing/ranking?

Hello, 

 

I have a list with 1044 workers and need to calculate some number of workers over selected period-related KPI's to calculate. 

At this stage, I need index column to adjust every time when I change some selections with the workers group. Because full list is from 1 to 1044 and that is okay, but when I deselect one of the groups, then there is 160 rows in table, however index numbers are the same and varies from 12 to 1038, while it should adjust to number of rows and be from 1 to 160. Any Ideas?

 

P.S. Workers are and should be ranked by date since they're working from. 

 

DomantasK_0-1676989007391.png

 

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@DomantasK You generally use RANKX for that sort of thing. To *Bleep* with RANKX! - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler Rankx doesn't adjust to further filtering, shows same static values as the power-query made index column.. 

Also it shows same number if the "Works since" date is the same for multiple workers, so I guess this should be something like multiple criteria ranking, by "Works since date" (From oldest to newest) and if date is the same then rank by "Name" from A to Z. 

@DomantasK Or use this: The Mythical DAX Index - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.