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
kristel_tulio
Helper III
Helper III

showing the MTD and YTD values based on Year filter

Hi I would like to ask for help. My calc doesn't work I tried using DATESMTD, TOTALMTD, DATESYTD, TOTALYTD but the values are not showing for current year.  I do have Date table and the Estimate summaries table but when I put my calc in gauge graph then select the current year it's not working anymore. But if I use a table chart and put month on it the data will show. 

 

I would like to use gauge graph and show the MTD or YTD based on the selected year in my filter.

Utilisation % =
DIVIDE([chargeable hours],[Client Hours],0)

 

MTD Utilisation% =
CALCULATE(
SUM(EstimateSummaries[Actual Hours]),
DATESMTD(Dates[Date])
)

 

YTD Utilisation % =
CALCULATE([Utilisation %], DATESYTD(Dates[Date]))

 

kristel_tulio_0-1666225955298.png

kristel_tulio_1-1666226066676.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kristel_tulio , Make sure financial year, Month in visual, and slicer are coming from Dates table.

 

MTD will not come as FY23 ending in Dec and you have not selected any month so the last month will be taken by datesmtd and the value for that month is blank.

 

but datesytd should come as long as you follow these 5-6 rules

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...

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

2 REPLIES 2
kristel_tulio
Helper III
Helper III

Hi @amitchandak 

That was clear now and it's already working.Thank you

amitchandak
Super User
Super User

@kristel_tulio , Make sure financial year, Month in visual, and slicer are coming from Dates table.

 

MTD will not come as FY23 ending in Dec and you have not selected any month so the last month will be taken by datesmtd and the value for that month is blank.

 

but datesytd should come as long as you follow these 5-6 rules

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.