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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Akhil_1411
Helper IV
Helper IV

YTD Dynamic Period Range Dates

Hi All,

 

I am trying to calculate the YTD, but the challenge is 2019 the week started at september and in 2020 the week has started at december. Attached is the sample data for 2019  and 2020. I require some DAX help.


  1. 2019201920202020
3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @Akhil_1411 ,

 

What's the expected result? Not sure if I understand you correctly, but you may consider to use If statement to make different calculations for 2019 and 2020?

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

You need a custom calendar for this. Please check out the time patterns at www.daxpatterns.com 

@Solu , Even custom calendar will not fit in my case because there is no pattern for the year. As i said the FY19 started on september and FY20 started on December. 

 

I think  custom calendar works if there patterns for the FY. In my case it is different hope you got my requirement.😑

Thank you.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.