Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi
I am trying to figure out the best way to implement a self updating index column and I asked a question yesterday that is related to this but in a slightly different fashion.
My question here is whether I can implement a index column that updates whenever a filter is applied to the table the column exists in.
So I got an index column which I have added through Power Query Editor:
Now when I apply a filter to this table, some rows are not shown which means that the index isn't going from 1 to N (number of rows) anymore:
Is it possible to make a measure og a calculated column that updates everytime a filter is applied to the table so the index column always shows from 1 to N?
Thanks
Solved! Go to Solution.
Let the table containing the Index column be 'Index Table'
Try this measure:
New index =
RANKX (
ALLSELECTED ( 'Index table' ),
CALCULATE ( SUM ( 'Index table'[Index] ) ),
,
ASC,
DENSE
)
Proud to be a Super User!
Paul on Linkedin.
I got circulare reference error.
Let the table containing the Index column be 'Index Table'
Try this measure:
New index =
RANKX (
ALLSELECTED ( 'Index table' ),
CALCULATE ( SUM ( 'Index table'[Index] ) ),
,
ASC,
DENSE
)
Proud to be a Super User!
Paul on Linkedin.
You are a wizard Paul! Thanks! 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |