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
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
Employee
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
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.

Top Solution Authors
Top Kudoed Authors