Forum Discussion

kormosb's avatar
kormosb
Icon for Helper III rankHelper III
6 years ago
Solved

DAX - t-1 value - Missing values

Hi,

 

I am facing an issue I would like to get help with.

 

I woud like to calculate the value of the previous quarter with the following DAX:

Value T-1 = CALCULATE('Value'[Value T],DATEADD('Quarter'[Last day of Quarter],-1,QUARTER))

 

 

 

As you can see in the picture there are some missing values for the previous quarters, but I don't know why.

 

Can you help me find the problem?

 

Please find attached the pbix and excel files.

Files 

 

Kind regards,

Benjamin

 

  • Hi kormosb ,

     

    Would you please try to use the following measure :

     

     

    Value T-1 = CALCULATE('Value'[Value T],FILTER(ALL('Quarter'),'Quarter'[Last day of Quarter] = EOMONTH(MAX('Quarter'[Last day of Quarter]),-3)))

     

     

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

     

    Best Regards,

    Dedmon Dai

     

3 Replies