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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
MissBI_21
Helper II
Helper II

Calculating Quarters

Hi,

 

I was wondering if anyone could help me. I have the dashboard below:

MissBI_21_0-1640859838957.png

What I'm trying to do is when QTD is selected along with a specific month, I want to show the months that are in the quarter with the data filled.

 

The backend table looks like this which already has a column for the quarter:

 

MissBI_21_1-1640859954429.png

 

The calculations for the other functions are below:

MissBI_21_2-1640859995261.png

 

1 - Month

2 - YTD

3 - 12 months

4 - Fiscal Year

5 - QTD (not working yet)

 

Could anyone help me with the syntax to work out QTD please?

 

 

3 REPLIES 3
ALLUREAN
Solution Sage
Solution Sage

Hi, @MissBI_21 

 

Please check this sample file:

https://www.dropbox.com/s/twvng51rr5k7me8/DynamicTimePeriods%28allure-analytics.com%29.pbix?dl=0

 

Take a look how it is working and maybe you will use the workaround there. 

 

Did I answer your question? Please Like and Mark my post as a solution if it solves your issue. Thanks.

Appreciate your Kudos !!!

https://allure-analytics.com/

https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA

https://www.linkedin.com/company/77757292/

 

 




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




V-lianl-msft
Community Support
Community Support

Hi @MissBI_21 ,

 

The picture is not very clear.For such problems, maybe referring to this blog can help you:

https://www.havensconsulting.net/blog-and-media/creating-a-mtd/qtd/ytd-time-intelligence-slicer 

If the problem persists, please refer to this blog to describe your problem:https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523 


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

amitchandak
Super User
Super User

@MissBI_21 ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

 

For QTD usually, we use Time intelligence with date table

example

QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(('Date'[Date])))

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

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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