Forum Discussion
Anonymous
6 years agoNot applicable
Making running total from pivoted data
Table.Pivot(Table.TransformColumnTypes(#"Filtered Rows2", {{"created", type text}}), List.Distinct(Table.TransformColumnTypes(#"Filtered Rows2", {{"created", type text}})[created]), "created", "u...
- 6 years ago
Hi Anonymous ,
You can download my proposed solution from here.
Here are the steps:
1) Unpivot the dates in Power Query to have a table as below
2) Add a measure for the cumulated value
Cumulated value = var selectedDate = LASTDATE('Countries'[Date]) RETURN CALCULATE(SUM('Countries'[Value]), 'Countries'[Date]<=selectedDate, ALLEXCEPT('Countries',Countries[Country]))Here is a screenshot of the final table:
Is this what you are looking for?
LC
Interested in Power BI and DAX tutorials? Check out my blog at www.finance-bi.com
lc_finance
Solution Sage
6 years agoHi Anonymous ,
You can download my proposed solution from here.
Here are the steps:
1) Unpivot the dates in Power Query to have a table as below
2) Add a measure for the cumulated value
Cumulated value =
var selectedDate = LASTDATE('Countries'[Date])
RETURN
CALCULATE(SUM('Countries'[Value]), 'Countries'[Date]<=selectedDate, ALLEXCEPT('Countries',Countries[Country]))Here is a screenshot of the final table:
Is this what you are looking for?
LC
Interested in Power BI and DAX tutorials? Check out my blog at www.finance-bi.com