Add an index column to a summarised table - Power BI
community.powerbi.com › t5 › DesktopJul 3, 2017 · Add an index column with the formula ID = RANKX ('TableName', [RankColumn], [RankColumn],1) where RankColumn is an existing column with unique numerical values If no such RankColumn exists then create one... RND = RAND () ID = RANKX ('TableName', [RND], [RND],1) Message 6 of 6 3,076 Views 0 Reply v-jiascu-msft Microsoft 07-16-2017 09:51 PM
Add an index column - Power Query | Microsoft Learn
learn.microsoft.com › power-query › add-index-columnDec 17, 2022 · Step 3. Add an integer-divide column from the index column. Select the Index column, go to the Add column tab, and then select Standard > Divide (Integer). In the Integer-divide dialog box, enter a number by which to divide each value in the column. In this case, your pattern repeats itself every three rows, so enter the value 3. Remove the Index column, because you no longer need it. Your table now looks like the following image.
Add calculated index column by DAX - Power BI
community.powerbi.com › t5 › DesktopSep 27, 2016 · 2. Go to the Add Column Tab. 3. Add Index Column. 4. Rename that column as ColIndex. 5. Close the EditQuery. 6. Right Click Your table. 7. Click on New Column. 8. Paste the following code. DesiredIndex = CALCULATE(COUNT([ColIndex]), ALL('Table2'), FILTER('Table2', [ColIndex] <=EARLIER([ColIndex])), FILTER('Table2', [CC]=EARLIER([CC])),