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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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