Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I've read a couple of posts on how to do this but I still can't make mine work. I need the correct DAX formula to make my line graph figures cumulative by period. It's really the filter part of the formula I'm getting confused with. Here are my examples:
This is an example of the information I would be using;
This is the line graph I need and need the totals to be cumulative.
Thanks for your help!
Solved! Go to Solution.
The X axis, are those months? A general running total pattern is like this. Try modifying it according to your needs and let me know.
Running Total =
CALCULATE (
[Total Sales],
FILTER ( ALL ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) )
)
Hi @kaytrishjr
Added on the above posts, if there's no date column could be using for [date]<=max(table(date)), you can just take the period column as index, and create the measure similar as:
Running Total =
CALCULATE (
[Total Sales],
FILTER ( ALL ( 'Table' ), 'Table'[period] <= MAX ( 'Table'[period] ) )
)
Hi @kaytrishjr
Added on the above posts, if there's no date column could be using for [date]<=max(table(date)), you can just take the period column as index, and create the measure similar as:
Running Total =
CALCULATE (
[Total Sales],
FILTER ( ALL ( 'Table' ), 'Table'[period] <= MAX ( 'Table'[period] ) )
)
The X axis, are those months? A general running total pattern is like this. Try modifying it according to your needs and let me know.
Running Total =
CALCULATE (
[Total Sales],
FILTER ( ALL ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) )
)
For Cumulative COlumn use the below DAX:
Column = CALCULATE(SUM(Table[SalesColumn]),ALL(Table),Table[DateColumn]<=EARLIER(Table[DateColumn]))
For Cumulative MEasure use the below DAX:
Measure = CALCULATE(SUM(Table[SalesColumn]),FILTER(ALL(Table),Table[DateColumn]<=Max(Table[DateColumn])))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
96 | |
79 | |
66 | |
62 |
User | Count |
---|---|
145 | |
113 | |
105 | |
85 | |
65 |