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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

QTD with Fiscal Calendar

Hi Team,

 

I have been trying to calculate the Count of IDs for the QTD based on the Fiscal Calendar.  Below is how my Fiscal Calendar is and it always starts from Saturday of the week where 1st feb falls. 

 

LP28D_0-1626250636266.png

 

I need to calculate the count of orders for the current Fiscal QTD.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Create a Rank column

 

Qtr Rank = RANKX(all('Date'),'Date'[FYFQ],,ASC,Dense)

 

Then try measures like these examples
This Qtr = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])))
Last Qtr = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])-1))

 

 

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Does your problem have been solved? If it is solved, please mark a reply which is helpful to you.

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

 

Best Regards,
Winniz

amitchandak
Super User
Super User

@Anonymous , Create a Rank column

 

Qtr Rank = RANKX(all('Date'),'Date'[FYFQ],,ASC,Dense)

 

Then try measures like these examples
This Qtr = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])))
Last Qtr = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])-1))

 

 

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks Amit. This helped. 

 

I have another question, when i use This Qtr in the visual, I see QTD values for all qtrs. How do i restrict it to show values only for the current quarter.

 

LP28D_0-1626255005459.png

 

Hi @Anonymous ,

 

If you want to show values only for the current quarter, try the following formula:

 

Measure = 
IF(
    MAX('Table'[FYFQ]) = CALCULATE( MAX('Table'[FYFQ]), 'Table'[Date] = TODAY() ),
    [This Qtr]
)

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors