powerbi - DAX Running Difference -


in power bi have table column decimal numbers.

how create new column running difference of aforementioned column values?

see personal example in picture below: dax running difference

in example want column difference between current value of runningextratime , previous one.

rather dax, edit query resolve this, using technique based on adding index column.

i assume use "add index column" , leave default column name: "index" , step name: "added index". can use "add custom column" , refer prior row's value column: "runningextratime" using like:

= if [index] > 0 [runningextratime] - #"added index"{[index]-1}[runningextratime] else 0


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -