I have a table in excel, where there are 3 columns as mentioned. Closed column is calculated column, in which I have applied formula in Row1- IFERROR(IF(B2="","",B2),"")
where B2=71 and the output is 71(closed column).
In Row2 of closed column, I have applied formula- IFERROR(IF(01/2020=01/2020, 284-71, 284),"")
/ IFERROR(IF(A3=A2, B3-B2, B3),"")
. Output is 213 and so on...
Same data I have in power bi, Report month and open column. I need to create a calculated column to get the closed column data. Please help me with the formula to apply in power bi.
You you have a Index or ID column in your data, just use that column. Here I have added a Index column to maintain the ordering between rows and the data looks as below-
Now create this below measure-
Here is the output-
Here is the code for Custom Column