Forum Discussion
quyen103
9 years agoFrequent Visitor
DAX calculation
Hello friends, I hope someone can help me out with this problem. I don't know how I can implement this calculated column in PowerBI. Should I use DAX? calculated function? data modelling? should I...
- 9 years ago
Add an Index Column in the Query Editor as shown in the image below...
Then create this COLUMN
Column 3 = VAR CurIndex = 'Table'[Index] RETURN IF ( 'Table'[Column0] = 1, BLANK (), CALCULATE ( SUM ( 'Table'[Column1] ) + SUM ( 'Table'[Column2] ), FILTER ( 'Table', 'Table'[Index] = CurIndex + 1 ) ) )Hope this helps! :smileyhappy:
Sean
9 years agoCommunity Champion
Add an Index Column in the Query Editor as shown in the image below...
Then create this COLUMN
Column 3 =
VAR CurIndex = 'Table'[Index]
RETURN
IF (
'Table'[Column0] = 1,
BLANK (),
CALCULATE (
SUM ( 'Table'[Column1] ) + SUM ( 'Table'[Column2] ),
FILTER ( 'Table', 'Table'[Index] = CurIndex + 1 )
)
)
Hope this helps! :smileyhappy:
- quyen1039 years agoFrequent Visitor
Sean,
Thank you so much my friend, super contributor Sean :)
I really appreciate the video and code response. Can't get any clearer than this.. !!
- v-huizhn-msft9 years agoMicrosoft Employee
Hi quyen103,
Please mark the right reply as answer. which will help more people to find solution.
Best Regards,
Angelia