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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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