Forum Discussion

linkide's avatar
linkide
Frequent Visitor
10 months ago
Solved

TOTALWTD not recognizing Calendar

I'm trying to test out the new TOTALWTD DAX function with

TOTALWTD(
    SUM(Sales[Sales Amount]),
    CalendarTable[Date])
)

But it's giving me an error: 
TOTALWTD's parameter 2 must be a calendar reference.

There's nothing wrong with my Calendar: no gaps, marked as a Date table with the [Date] column. If I change from TOTALWTD to TOTALYTD, there's no error. In other words, this works fine:

TOTALYTD(
    SUM(Sales[Sales Amount]),
    CalendarTable[Date])
)

What am I missing?

5 Replies