Forum Discussion
Comparison function with if in Dax
- 9 years ago
I'm using it as a solution:
SUMX (
FILTER (QL2_Alerts, QL2_Alerts[dtt_data_captura] = MAX (QL2_Alerts[dtt_data_captura])),
QL2_Alerts[flt_base])
This measure would return the difference between one day and the previous day. Not literally today and yesterday unless you give it today's date from the date table, but any 2 day period based on the date from your date table.
Daily Variance = SUM(TableName[Value]) - CALCULATE( DATEADD(DateTable[dtt_date], -1, day) )
It does not work for me. I want to bring a measure of only the result of today's date. A measure that filters only the sum of today's date.
- Anonymous9 years agoNot applicable
Use your date table and show this measure next to today's date.
- sakamotothais9 years agoHelper III
I do not know how, I want to fix this measurement of today date. And compare with other reporting dates through filters. But today it has to be fixed.
Something like
CALCULATE(SUM(QL2_Alerts[flt_base],TODAY()))
- sakamotothais9 years agoHelper III
I'm using it as a solution:
SUMX (
FILTER (QL2_Alerts, QL2_Alerts[dtt_data_captura] = MAX (QL2_Alerts[dtt_data_captura])),
QL2_Alerts[flt_base])