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
Pikachu-Power
Post Prodigy
Post Prodigy

YTD for next year ignores slicer

Hi all,

 

i have on the canvas a YEAR and MONTH Slicer and the following two measures which i compare: 

 

Plan_YTD = TOTALYTD([Plan], Calender[Date])
Plan_YTD_NY = CALCULATE([Plan_YTD], NEXTYEAR(Calender[Date]))
 
Plan_YTD is how I want... when I choose YEAR = 2022 and MONTH = 6 i see the cumulated value from MONTH 1 until 6 for YEAR 2022.  But the Plan_YTD_NY doesnt react to the month slicer. It always shows YTD for the whole year 2023.
 
Someone an idea why Plan_YTD_NY ignore my month slicer? 😕
1 ACCEPTED SOLUTION
Cado_one
Resolver III
Resolver III

Hi @Pikachu-Power 
The NEXTYEAR function always returns a full year of dates.

You can try instead :

Plan_YTD_NY = CALCULATE([Plan_YTD], PARALLELPERIOD(Calender[Date], 1, YEAR))

 

Have a good day,

Cado

View solution in original post

2 REPLIES 2
Cado_one
Resolver III
Resolver III

Hi @Pikachu-Power 
The NEXTYEAR function always returns a full year of dates.

You can try instead :

Plan_YTD_NY = CALCULATE([Plan_YTD], PARALLELPERIOD(Calender[Date], 1, YEAR))

 

Have a good day,

Cado

Ok Thank you! PARALLELPERIOD with "12 MONTH" instead of "1 YEAR" helps.

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.