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
Imagauthamam
Helper I
Helper I

QTD Measure Calculation For Fiscal Year

Hi All,

In my project, I calculated the Total Sales MTD,QTD and YTD with respect to calendar year. It was working fine. But there was a request to switch it to Fiscal Year. Our Fiscal Year Starts on April and Ends on March.

Total Cases MTD was working fine anyway.

For, Total Cases YTD, I modified the formula to include when the Fiscal Year ends and this is also working fine. Please find the below formula:

Total Sales YTD = TOTALYTD([Total Sales],Calendar[Calendar Date],"03/31")

For Total Cases QTD, Im not sure how to make this work in measures.

Apr-June ->Q1

July-Sep->Q2

Oct-Dec->Q3

Jan-Mar->Q4

I have used the below formula, how can I make it work with respect to Fiscal Calendar

Total Cases QTD = TOTALQTD([Total Sales],Calendar[Calendar Date])

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

plse try this

Measure = 
TOTALYTD(
TOTALQTD([Total Sales],'Calendar'[Date]),'Calendar'[Date],7761)

View solution in original post

5 REPLIES 5
Ahmedx
Super User
Super User

plse try this

Measure = 
TOTALYTD(
TOTALQTD([Total Sales],'Calendar'[Date]),'Calendar'[Date],7761)

@Ahmedx  Thanks for this solution. This works. I'm Just curious to know how did you arrive at this number 7761. And let's say my fiscal year starts from February. So my 

Q1-> Feb to Apr

Q2-> May to July

Q3->Aug to Oct

Q4->Nov to Jan

 

How Will I tweak the above formula to achieve this?

ToddChitt
Super User
Super User

If Total Sales YTD = TOTALYTD([Total Sales],Calendar[Calendar Date],"03/31") is right, then what is missing from:

Total Cases QTD = TOTALQTD([Total Sales],Calendar[Calendar Date]) ?

 

Total Cases QTD = TOTALQTD([Total Sales],Calendar[Calendar Date],"03/31")

 

Does this not tell the function that the first quarter starts on that date? Am I missing something?




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





@ToddChitt  It throws an error. Please find the below screenshot.

 

Screenshot 2023-08-10.png

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.