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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.