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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bcbuckley13
Helper III
Helper III

Error when no Completion date

Hello,

I've created two columns. One is a Custom column that just adds 30 days to the Reg Date (Due Date). The "Completed in 30?" column is a Conditional column to see if the user completed the course within the 30 days.

 

If the Completion date is empy, I get a Null, and then an Error in the last column.

 

Is there any way that I can fix this?

 

Dining Room Error.jpg

1 ACCEPTED SOLUTION

Hi @bcbuckley13 ,

 

You have to start the if with nulls.

 

The if should be something like if [Course Complete Data] = null then ........

write the other conditions with if else / else.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

8 REPLIES 8
dax
Community Support
Community Support

Hi @bcbuckley13 , 

If possible, could you please inform me the detailed error information? if it is caused by the data type, you could try to see whether next step is "change type", then delete this step to see whether it work or not. By the way, if possible, could you please inform me your expression of "Completed in 30" , then I will try to test this in my environment?

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Here's the error that it gives.

image.png

 

 

 

 

 

image.png

Hi @bcbuckley13 ,

 

You have to start the if with nulls.

 

The if should be something like if [Course Complete Data] = null then ........

write the other conditions with if else / else.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



@camargos88  Thank you! That seems to have fixed it! 

 

image.png

mahoneypat
Microsoft Employee
Microsoft Employee

From the image, your Due Date is still an Any data type.  Change it to Date to see if that fixes issue.

 

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


Thanks, but that didn't work.

image.png

lbendlin
Super User
Super User

Power Query has a "try...otherwise"  construct that you will want to use.  maybe show your (sanitized) code.

Here's what I had, but still not working.

 

image.png

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.