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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
a_rp
Frequent Visitor

QTD and Previous Year

@littlemojopuppy  I am trying to do a report which shows current year Budget Vs Actuals, Current Year Quarterly update Vs Actuals and comparison of this with the previous year. I have included the sample dataset and the format of required report in attached excel. Also included Custom Excel file Fiscal Year Calendar (prepared based on one of your previous blog). I have been trying & thinking on this since last 2-3 days but unfortunately cannot figure out a solution. Can you plz guide me on this. Thanks

 

https://1drv.ms/u/s!Ag_LqrJ6gGmfkher0w2BTTiRLCfv?e=FpZZlI

3 REPLIES 3
amitchandak
Super User
Super User

@a_rp , Have you already explored time intelligence functions ?

 

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

 

 

Last year same QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-1,Year)))
Last year same Quarter Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(ENDOFQUARTER(dateadd('Date'[Date],-1,Year))))

 

 

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

a_rp
Frequent Visitor

Anyone who can guide me on this, plz help

Hi @a_rp 

 

Looks like @amitchandak has already provided some of what you need.  Attaching a Tabular Editor script to create some calculation items to calculate different time period calculations.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.