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
AKARSEVGI
Helper I
Helper I

NEXT YEAR DATE PROBLEM

Export % Next Year Open Ord = DIVIDE(CALCULATE([TOTAL OPEN ORDER NEXT YEAR],FILTER('CO-BAS003X','CO-BAS003X'[SALESORIGIN]="EXPORT"),NEXTYEAR('DATE SCHEDULE'[Date],FORMAT(DATE(2022,12,31),"DD.MM.YYYY"))),CALCULATE([TOTAL OPEN ORDER NEXT YEAR],NEXTYEAR('DATE SCHEDULE'[Date],FORMAT(DATE(2022,12,31),"DD.MM.YYYY")))) 

 

It doesn't work.  I take the error "ONLY CONSTANT DATE VALUE IS ALLOWED AS A YEAR END DATE ARGUMENT". Anyone know it?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

There is no need to specify the end date for regular calendars.

 

NEXTYEAR('DATE SCHEDULE'[Date])

 

if you want to do it anyway you can use the safe format

 

NEXTYEAR('DATE SCHEDULE'[Date],"2022-12-31")

 

 

NEXTYEAR function (DAX) - DAX | Microsoft Learn

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

There is no need to specify the end date for regular calendars.

 

NEXTYEAR('DATE SCHEDULE'[Date])

 

if you want to do it anyway you can use the safe format

 

NEXTYEAR('DATE SCHEDULE'[Date],"2022-12-31")

 

 

NEXTYEAR function (DAX) - DAX | Microsoft Learn

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.