Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

How to take To Date from Date range using Dax

Hi All,   I want to Pick To Date only  which I have highlight below using dax and As I am using Date ranges as well
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi,
    Try the following dax formula.

     

    Previous year = CALCULATE(SUM('Table'[Sales]), FILTER(ALL('Table'), 'Table'[Date] <= MAX('Table'[Date]) && 'Table'[Year] = YEAR(TODAY())))

     

    Best Regards,

    Wisdom Wu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.