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 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

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

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
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.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.