Forum Discussion
christina4444
Helper I
3 years agoCalculating MTD - Ignoring Page Filter (Date)
Hi Community! I am looking to see if anyone could help me with a dax formula to ignore a Page date filter. The outcome would be, no matter what page date filter is set, the formula would sti...
- 3 years ago
Do you want to show MTD sales as at "today" as returned by TODAY() function?
I would typically write something like this:
MTD Total Sales = CALCULATE ( [total sales], DATESMTD ( 'calendar'[date] = TODAY () ) )As long as your calendar table is marked as a date table, this should work fine.
Please post back if you were looking for something different or this doesn't work for you.
Regards
OwenAuger
Super User
3 years agoDo you want to show MTD sales as at "today" as returned by TODAY() function?
I would typically write something like this:
MTD Total Sales =
CALCULATE (
[total sales],
DATESMTD ( 'calendar'[date] = TODAY () )
)
As long as your calendar table is marked as a date table, this should work fine.
Please post back if you were looking for something different or this doesn't work for you.
Regards
christina4444
Helper I
3 years agoIt worked! Thank you so much, OwenAuger !