Forum Discussion

linkide's avatar
linkide
Frequent Visitor
1 year ago
Solved

TOTALWTD not recognizing Calendar

Trying to use the new TOTALWTD DAX function with AdventureWorks sample dataset:

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

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

My Calendar table is completely fine: no gaps, marked as a Calendar table.

If I change TOTALWTD to TOTALYTD, so that would be
 
TOTALYTD(
    SUM(Sales[Sales Amount]),
    CalendarTable[Date])
)

I'm getting no errors; suddenly the Calendar table is fine. Is anyone else able to use this function? What am I missing?

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi linkide ,

    I would also take a moment to thank Kedar_Pande  , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
     

    I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi linkide ,

      I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you