Forum Discussion
Need help formatting data structure.
- 6 years ago
Hi Anonymous
first create a calendar table
Calendar = CALENDARAUTO()then you can create whether a calculated column
Sales Amount (Cumulative Total) = CALCULATE(SUM(Table[Sale amount]), FILTER(ALL(Table]), Table[Date] <= EARLIER(Calendar[Date])))or measure
Sales Amount (Cumulative Total) = CALCULATE(SUM(Table[Sale amount]), FILTER(ALL(Table]), Table[Date] <= MAX(Calendar[Date])))for this calendar table
Hi Anonymous
first create a calendar table
Calendar = CALENDARAUTO()
then you can create whether a calculated column
Sales Amount (Cumulative Total) =
CALCULATE(SUM(Table[Sale amount]), FILTER(ALL(Table]), Table[Date] <= EARLIER(Calendar[Date])))
or measure
Sales Amount (Cumulative Total) =
CALCULATE(SUM(Table[Sale amount]), FILTER(ALL(Table]), Table[Date] <= MAX(Calendar[Date])))
for this calendar table
- Anonymous6 years agoNot applicable
This is very close with the measure but it is giving an unexpected result. It is assigning the total sum of that column to a every person. Not a cumulative total of each person for each month.
- andre6 years agoMemorable Member
here is a tutorial on running totals
if you want to practice, you can download the materials here: https://businessintelligist.com/2020/07/22/getting-better-at-dax-having-fun-with-running-totals/
- az386 years agoCommunity Champion
Anonymous
do you have relationships between calendar table and sales table?
what table (calendar or sales) do you use as date columns in visual?