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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
KriZo
Resolver II
Resolver II

YTD Changes

I have an issue with a YTD that keeps changing. 

 

I measure a delivery performance from an external warehouse. Including in the model i have a YTD. But it keeps changing. 

 

I wrote this formula 

Service Level YTD :=CALCULATE([SL];DATESYTD('Calendar'[Date])

But if i chose to look at the service level in January, the YTD changes off course as we are now in Mar. 

 

So i therefor made:

Service level YTD :=CALCULATE([SL];ALL('Calendar'[Date]);DATESYTD('Calendar'[Date]))

But the Service Level YTD still changes, so apparently it doesn't overwrite my date filter. ?

 

I am btw doing this in PowerPivot in an Excel workbook for now, i will eventually turn it into a PowerBi report, I just haven't gotten around to that yet 🙂

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @KriZo,

 

Have you tried this:

Service level YTD :=CALCULATE([SL];ALLSELECTED('Calendar'[Date]);DATESYTD('Calendar'[Date]))

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yulgu-msft

 

Hmm that unfortuantely does excactly the same as my measures, and returns the same values 😞

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.