Forum Discussion
Anonymous
4 years agoNot applicable
How to get value based date filter
i have data table values and date column Table 1 sales period flag 450 01-03-2021 1 234 01-04-2021 2 450 01-05-2021 3 234 01-06-2021 ...
- 4 years ago
If your period is stored as a text data type, then I'd expect this to work:
junval = CALCULATE ( SUM ( table1[sales] ), FILTER ( table1, table1[period] = "01-06-2021" ) )Note that sales needs to table1[sales] and I used " instead of '.
Jihwan_Kim
Super User
4 years ago
junval =
CALCULATE (
SUM ( Table1[sales] ),
FILTER ( table1, MONTH ( Table1[period] ) = 6 )
)