Forum Discussion
Sum add all the previous elements to a date
- 8 years ago
You want a running total (cummulative total).
Check the link below how to do it,
https://whatthetechisthat.wordpress.com/2017/05/30/power-bi-cumulative-totals/
If your date field in below table is a date heirarchy, then you can choose only month and year. You need to have a calendar table and establish relatship with your data table.
Running Toal Measure =
CALCULATE(
Sum(Table[Value],
FILTER(All(Dim_Date[Date]), Dim_Date[Date] <= MAX(Dim_Date[Date]
)
)
You want a running total (cummulative total).
Check the link below how to do it,
https://whatthetechisthat.wordpress.com/2017/05/30/power-bi-cumulative-totals/
If your date field in below table is a date heirarchy, then you can choose only month and year. You need to have a calendar table and establish relatship with your data table.
Running Toal Measure =
CALCULATE(
Sum(Table[Value],
FILTER(All(Dim_Date[Date]), Dim_Date[Date] <= MAX(Dim_Date[Date]
)
)
- AlexEners8 years agoFrequent Visitor
Can i do that with direct query?
- Anonymous8 years agoNot applicable
AlexEners,
Yes. You are able to calculate running total using anandav's DAX in DirectQuery mode. Ensure that you turn on "allow unrestricted measures in directquery mode" option in your Power BI Desktop.
Regards,
Lydia