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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
sujitjena
Resolver I
Resolver I

QTD Fuction for Financial Year calendar

Hi All,

 

I am new to the QTD function that is introduced in Power Bi for Time intelligent functions. For Some reason it doesnt follow the financial year that i have defined (CalendarAuto). It goes back to Calendar Year format. Is there a specific argument that i am missing here. Here are the functions i tried 

CALCULATE((SUM(sales[sales],DATESQTD(Dates[Date]),Sales[Dimension]="Actual")
TOTALQTD(SUM(Sales[Sales]),Dates[Date])
Any suggestions?
8 REPLIES 8
amitchandak
Super User
Super User

@sujitjena , Try like

CALCULATE(SUM(sales[sales]),DATESQTD(Dates[Date]),Sales[Dimension]="Actual")

Also with datesqtd you need to have date selected

Power BI — QTD
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak - Thanks for the quick reply but this only works with normal calendar quarters. For me the Financial Quarter starts in Sep.

@sujitjena TOTALQTD and DATESQTD function are not fiscal/financial year calendar aware. you have to manage your own calculation for QTD to meet your financial calendar, although YTD functions are fiscal year aware as you can pass your own fiscal year-end value to it.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k : Thanks for a quick response. Is there a way to make these functions calendar aware? because i thought once i have defined my quarters in the CalendarAuto table, the QTD function will follow the same.

Hi @sujitjena ,

 

You could try like this:

 

Create a fiscal calendar table:

https://goodly.co.in/financial-year-calculation-excel-and-power-bi/

 

Create a QTD measure:

Measure = CALCULATE (
[Total Amount],
FILTER (
ALL ( ‘Calendar’ ),
‘Calendar'[FiscalYear] = MIN ( ‘Calendar'[FiscalYear] )
&& ‘Calendar'[FiscalQuarter] = MIN ( ‘Calendar'[FiscalQuarter] )
&& ‘Calendar'[Date] <= MAX ( ‘Calendar'[Date] )
)

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks, I was looking for a solution like this for so long.

@v-xuding-msft : Thank you for the solution and i am using this already. But i was wondering if Microsoft indroduced QTD function, it should be able to accomodate financial calanders for Quarters like the YTD function, else its of less use.

Hi,

In the Calendar Table, you will have to create a Quarter column.  Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.