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
Solved! Go to Solution.
@Anonymous , OR
new column =
var _max = maxx(filter(Table, [Index] <earlier([Index])), [Index])
var _value = minx(filter(Table, [Index] =_max), [Number])
return
divide([Number]-_value,_value)
//or use divide(_value-[Number],[Number])
Hello @Anonymous ,
You have to create two index columns in Power Query, sort the data first. An index starting from 0 and an index starting from 1. Then in a formula, you have to use the EARLIER function to perform the calculation in a calculated column.
Please replace with a higher quality image of screenshot.
@Anonymous , You need add an index column in power query https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi
and then add new column in dax
new column =
var _max = minx(filter(Table, [Index] >earlier([Index])), [Index])
var _value = minx(filter(Table, [Index] =_max), [Number])
return
divide(_value-[Number],[Number])
@Anonymous , OR
new column =
var _max = maxx(filter(Table, [Index] <earlier([Index])), [Index])
var _value = minx(filter(Table, [Index] =_max), [Number])
return
divide([Number]-_value,_value)
//or use divide(_value-[Number],[Number])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |