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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ingbra
New Member

Compare dates to return a value (KPI)

I' new at this, and I want to compare the estimated delivery dates to the actual delivery dates and return a value that can be used to measure to a %KPI. I get an error message for the records that are null.

Expression.Error: We cannot convert the value null to type Logical.
Details:
    Value=
    Type=Type

Can I only use TRUE or FALSE as output?

1 ACCEPTED SOLUTION
MarcelBeug
Community Champion
Community Champion

You can have null as output for logicals.

 

However, if you want to test on that logical, you get the error you mention.

 

Null in logical.png

Specializing in Power Query Formula Language (M)

View solution in original post

1 REPLY 1
MarcelBeug
Community Champion
Community Champion

You can have null as output for logicals.

 

However, if you want to test on that logical, you get the error you mention.

 

Null in logical.png

Specializing in Power Query Formula Language (M)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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