Forum Discussion

pmadam's avatar
pmadam
Helper II
5 years ago

DAX Help

Team,

 

I need to calculate Previous year measures while selecting current year = Y. With below dax i am able to do when i select each year but when i select curr year = y measure breaks.

 

Here is Time table structure.

 

 

DAX Used : 

Calculate(SUM('CIR'[YTDSales]),FILTER(ALL('Time'[Year]),'Time'[Year] = MAX('Time'[Year])-1))