Forum Discussion
create index based on first row value
- 9 years ago
Hi Songjiao,
In the Power Query Editor, under Add column, click add index column highlighted in yellow. You will get the index from first rows shown in second screenshot.
Then create a calculated column to get the first row value, create a measure to calculated percentage based on first value. Please see the result shown in table.First value = MINX(FILTER(Table5,Table5[Index]=1),Table5[values])
result = DIVIDE(SUM(Table5[values]),AVERAGE(Table5[First value]))
If you have any other issue, please feel free to ask.
Best Regards,
Angelia
Hi Songjiao,
In the Power Query Editor, under Add column, click add index column highlighted in yellow. You will get the index from first rows shown in second screenshot.
Then create a calculated column to get the first row value, create a measure to calculated percentage based on first value. Please see the result shown in table.
First value = MINX(FILTER(Table5,Table5[Index]=1),Table5[values])
result = DIVIDE(SUM(Table5[values]),AVERAGE(Table5[First value]))
If you have any other issue, please feel free to ask.
Best Regards,
Angelia
thank you very much for your help. this solved it!