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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors