Forum Discussion
Anonymous
5 years agoNot 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],FILT...
amitchandak
5 years agoSuper 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
- Anonymous5 years agoNot 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]))