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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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