Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi am looking to have an Index Column that will repeat the same index number if the AccoutantLinkCode is repeated in another text field column.
So for the first AccountantLinkCode group "Bank" the index would be 1, then next group AR would be 2 and so on..
Can you advise the best approach or function to get this new index column in the table below?
Solved! Go to Solution.
Please see the Query Editor in attached PBIX file
HI @THEG72
Try this. First Add a supporting Column
Supporting Column = CALCULATE ( MIN ( Table1[Index] ), ALLEXCEPT ( Table1, Table1[AccountantLinkCode] ) )
Then you can use this Index Column
Please see attached excel file
Index Column = RANKX ( Table1, Table1[SupportingColumn],, ASC, DENSE )
Thanks for your reply, would you know the M language version to get this result instead of DAX?
Hi @THEG72
With Query Editor...You can create a Duplicate Query....
Summarize(Group by) results using the AccountantLinkCode Column
Then Add an Index to it
Now you can merge the 2 Queries
Result
Please see the Query Editor in attached PBIX file
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
37 | |
31 | |
26 |
User | Count |
---|---|
95 | |
50 | |
43 | |
40 | |
35 |