Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
@mamoormasoomi wrote:
Hello,
Please check the below screenshot and help me to resolve this issue.
To get the expected output, the first step is sorting by Key1 ascending and adding an index column to determine the rows order.
Then create a calculated column
Result Key = 'Table'[Index]-MINX(FILTER('Table',EARLIER('Table'[Key1])='Table'[Key1]),'Table'[Index])+1
See more details in the attached pbix file.
@mamoormasoomi wrote:
Hello,
Please check the below screenshot and help me to resolve this issue.
To get the expected output, the first step is sorting by Key1 ascending and adding an index column to determine the rows order.
Then create a calculated column
Result Key = 'Table'[Index]-MINX(FILTER('Table',EARLIER('Table'[Key1])='Table'[Key1]),'Table'[Index])+1
See more details in the attached pbix file.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |