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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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