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
sharath123
Helper I
Helper I

Power BI measure blank function appearing 0 for the unknown source column in the table

sharath123_0-1662572492198.png

 

TAT (sec) =
if(DATEDIFF(MAX(quotes[Request Date-time]),Max(quotes[Assessment Date&Time]),SECOND) =BLANK(),0,
DATEDIFF(MAX(quotes[Request Date-time]),Max(quotes[Assessment Date&Time]),SECOND))

I wrote this measure to print if there is a blank return 0, but the measure returning 0 for the unknown values also(if the source column is not even though present )
2 REPLIES 2
NewbieYR
Frequent Visitor

Not sure what is the unknown value but why not just filter out the unknow value from the visual (or the page)

 

speedramps
Super User
Super User

We want to help you but your description is too vaugue.

Please write it again clearly.

Pleasde DON'T post you DAX code that does no work and expect us to fathom out from you bad code how it should work. ☹️☹️

Simply tell us the functional requirmments. 😀😀

Provide example input data as table text (not a screen print) so we can import the data to build a soution for you.
Also provide the example desired output, with a clear description of the process flow.

Don't care not to share private data.

Take care to use the same table and field names in the input, output and description so we can understand your problem and help you.

You will get a quick response if you put time and effort into writing clear problem descriptions.

Vaugue descriptions waste your time and ourtime.

Look foward to helping you when the above information is forthcoming.

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.