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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.