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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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