Capt.Ragnar
Board Regular
- Joined
- Jun 6, 2012
- Messages
- 138
I've tried to apply examples that I found here and elsewhere to no avail. Below is the DAX formula I've attempted without success...
90DaysAmount:=CALCULATE(SUMX(Table1,[Amount]),FILTER(ALL(Table1),Table1[Time ID]>=MAX(Table1[Time ID])-3&&Table1[Time ID]<=MAX(Table1[Time ID])))
What you need to know about the time component is that data is only reported monthly. So each number value in the Time ID table is reflective of a month and a year.
Ex.
[TABLE="width: 200"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Month[/TD]
[TD]Year[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Jan[/TD]
[TD]2013[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Feb[/TD]
[TD]2013[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Mach[/TD]
[TD]2013[/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to calculate the 90 day volume for each location in my pivot. The formula above results in the same total for every location.
90DaysAmount:=CALCULATE(SUMX(Table1,[Amount]),FILTER(ALL(Table1),Table1[Time ID]>=MAX(Table1[Time ID])-3&&Table1[Time ID]<=MAX(Table1[Time ID])))
What you need to know about the time component is that data is only reported monthly. So each number value in the Time ID table is reflective of a month and a year.
Ex.
[TABLE="width: 200"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Month[/TD]
[TD]Year[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Jan[/TD]
[TD]2013[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Feb[/TD]
[TD]2013[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Mach[/TD]
[TD]2013[/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to calculate the 90 day volume for each location in my pivot. The formula above results in the same total for every location.