Forum Discussion
RY2019
4 years agoFrequent Visitor
Cumulative Total in Matrix
Hi all, does somebody know how I can adjust or cumulativ a secific column in a Matrix visualization ? How I want to see it in my Power BI Report you can see it in the screenshot in gree...
- 4 years ago
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
All measures are in the attached pbix file.
Cumulative: =SUMX (VALUES ( Database[Stage] ),CALCULATE (CALCULATE (SUM ( Database[Baseline] ),FILTER ( ALL ( Database ), Database[Stage] <= MAX ( Database[Stage] ) ))))Want to see: =IF (HASONEVALUE ( Database[Stage] ),CALCULATE ([Cumulative:],FILTER ( ALL ( Database ), Database[Stage] <= MAX ( Database[Stage] ) )))
Jihwan_Kim
Super User
4 years agoHi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
All measures are in the attached pbix file.
Cumulative: =
SUMX (
VALUES ( Database[Stage] ),
CALCULATE (
CALCULATE (
SUM ( Database[Baseline] ),
FILTER ( ALL ( Database ), Database[Stage] <= MAX ( Database[Stage] ) )
)
)
)
Want to see: =
IF (
HASONEVALUE ( Database[Stage] ),
CALCULATE (
[Cumulative:],
FILTER ( ALL ( Database ), Database[Stage] <= MAX ( Database[Stage] ) )
)
)