Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

DAX Calculation Measure Date Filter

Hi, 

 

I'm trying to create a measure that reflects the Quarter-over-Quater change (%) for business. Currently, I have the following DAX statement measure:

 

Q/Q = CALCULATE(RESL_Table[Cal],FILTER('RESL_Table'[Date]>=2020-07-01)) - CALCULATE(RESL_Table[Cal],FILTER('RESL_Table'[Date]=2020-04-01))
 
Where:
RESL_Table = is the table where I got the data from
[Cal]=is
Cal = is the sum of the amount or CALCULATE(SUM(RESL_Table[$MM]))
Date = the column from where I want to get certain dates (for the amounts needed)
>=2020-07-01 = is the statement to get values from July 2020 or after
=2020-04-01 = is the statement to get values from April 2020
 
Hope you could help me with the calculation.
 
Thanks

2 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi, I wateched the video and in theory it works but I tried on my own and there is there is no data for the Last QTD.

      I used the following formulas: 

       

      Last QTD = CALCULATE([Cal],DATESQTD(DATEADD('RESL_Table'[Date],-3, QUARTER)))
       
      QTD = CALCULATE([Cal],DATESQTD(RESL_Table[Date]))
       
      Cal = CALCULATE(SUM(RESL_Table[$MM]),REMOVEFILTERS(RESL_Table[Bank]))