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 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 is what I have so far but it is not working. Any ideas on how to get this to work?
DEFINE
VAR CostFilter = filter('Table01','Table01'[Date] >= date(year(now()),month(now()),1))
VAR Costcolumns = SUMMARIZECOLUMNS(
'Table01',
'Table01'[Tags - Copy.DepartmentNumber],
'Table01'[Tags - Copy.OwnerEmail],
'Table01'[Cost],
'Table01'[Date]
)
evaluate
Costcolumns
Hi @cocoblb
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
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 |
---|---|
51 | |
27 | |
23 | |
13 | |
8 |
User | Count |
---|---|
74 | |
52 | |
47 | |
16 | |
12 |