I want to add an column in my DAX query output which will give the cumulative row number starting from 1? I want to generate this dynamically for any DAX query that I run. How can I achieve this without much performance impact?
I have a dataset like this:
I have created a measure for ContractValue as SUM([Value]). The expected output is to get the dynamic row number generated for the aggregated results as well. For example: