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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
bcbuckley13
Helper III
Helper III

Getting Token eOF Error for formula, but not sure why. Still learning DAX.

I'm trying to create a column that tells me if someone completed a course before the Due Date, and if not, then Overdue. The initial challenge I had was that if someone didn't complete it at all yet, then I was getting  a Null.

 

bcbuckley13_0-1593542109857.png

 

 

IF [Course Complete Date] < [Due Date] then "Yes"
else
if [Course Complete Date] = null and [Due Date] = < TODAY()
then "Overdue"
else if [Course Complete Date] > [Due Date] then "No"
else "Pending"

1 ACCEPTED SOLUTION

TODAY() is a DAX function.  The equivalent in M is Date.From(DateTime.LocalNow())

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
az38
Community Champion
Community Champion

Hi @bcbuckley13 

use lowercase "if"


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Thank you AZ38! That fixed that issue, but now I got this. 😞

 

bcbuckley13_0-1593542990407.png

 

TODAY() is a DAX function.  The equivalent in M is Date.From(DateTime.LocalNow())

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.