Forum Discussion
Time Range Filter: How to keep filtered values?
- 9 years ago
So what you're looking for is a running total to that point in time?
So this would result to
Calculate( SUM(Sales);
Datesbetween(DateTable;Min(Date);Max(Date));
ALL(Date Table) Removes all filters on the date table
)
This should provide a running total, if my datesbetween statement is wrong
have a look at
hey NilsDecoene,
thanks for introducing the Datesbetween function. I solved it now!
You need to create 2 measueres.
One that contains the all the Data up to the starting date of the filter and the second one that contains all data.
You need to apply the Datesbetween function for the first one. You set the start date on 01/01/1900 and the End Date to
min(Date).
Best.
Nils
With this solution you only need one meassure that gives you the running total:
max. Date = Calculate( COUNT([Sales]);
Datesbetween('Sales'[Date].[Date]; Max('Sales'[Date]); 01/01/2100);
ALL('Sales'[Date])
)