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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

QTD function different to Calendar Year

 

Hi All,

 

I hope someone can help me out. I've been trying to fgure out how to calculate QTD figures for a Financial Report without success.

 

I have the below formula which to calculate YTD and it's working fine:

 

YTD = CALCULATE([Total Amount],(DATESYTD(dcalendar[Date],"08/31"))))

 

My fiscal year is running from Sep to Aug, hence the 1st Quarter is Sep-Oct-Nov and so on.

 

I have a calendar table called "dcalendar" with the below calculated columns:

 

Date: dcalendar = CALENDAR(DATE(YEAR(MIN(fSwedenQ1_Q2[Date])),1,1),DATE(YEAR(MAX(fSwedenQ1_Q2[Date])),12,31))

Year = YEAR(dcalendar[Date])

Month = dcalendar[Date].[Month]

MonthNumber = dcalendar[Date].[MonthNo]

Fiscal Year = if(dcalendar[MonthNumber]<9,dcalendar[Year],dcalendar[Year]+1)

Fiscal Quarter = IF((dcalendar[MonthNumber]>=9 && dcalendar[MonthNumber]<12),"Qtr1",IF((dcalendar[MonthNumber]>=6 && dcalendar[MonthNumber]<9),"Qtr4",IF((dcalendar[MonthNumber]>=3 && dcalendar[MonthNumber]<6),"Qtr3","Qtr2")))

Fiscal Quarter number = IF((dcalendar[MonthNumber]>=9 && dcalendar[MonthNumber]<12),"1",IF((dcalendar[MonthNumber]>=6 && dcalendar[MonthNumber]<9),"4",IF((dcalendar[MonthNumber]>=3 && dcalendar[MonthNumber]<6),"3","2"))).

 

How can I calculate QTD amounts? Jugding by other posts the QTD function won't be good in this case.

 

Thanks in advance.

 

VE

 

 

2 REPLIES 2
rmudgal89
Frequent Visitor

Is there any answer to this question , searching for it

v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may try to use DATEADD Function to shift the dates.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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