Forum Discussion
Anonymous
3 years agoNot applicable
Filter dataset for previous month data
I see a few similar Dax queries to what I am trying to achieve but the only problem is I am not looking for a sum or total. I simple just want to filter the data set for last months data only. This i...
tamerj1
Community Champion
3 years agoHi Anonymous
Please try
DEFINE
VAR CostFilter = FILTER(VALUES(Table01'[Date]), 'Table01'[Date] >= EOMONTH ( TODAY ( ), - 1 ) + 1 )
VAR Costcolumns = SUMMARIZECOLUMNS(
'Table01',
'Table01'[Tags - Copy.DepartmentNumber],
'Table01'[Tags - Copy.OwnerEmail],
'Table01'[Cost],
'Table01'[Date],
TREATAS ( CostFilter, 'Table01'[Date] )
)
evaluate
Costcolumns