Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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 2
amitchandak
Super User
Super User

@Anonymous , You can try time intelligence and date table

 

Example

QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(('Date'[Date])))
Last QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-1,QUARTER)))

 

Power BI — Qtr on Qtr with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839
https://www.youtube.com/watch?v=8-TlVx7P0A0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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]))Screenshot (21).png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.