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
F_Fitti
Advocate II
Advocate II

Is the output of TRUE() and FALSE() expected to be blank? (DAX Queries BUG?)

This post will potentially look like a stupid post/question, and I apologize in advance if it turns out I'm simply making an ignorant mistake here. I'm running Power BI Desktop December 2023. 

 

I'm writing some logic in DAX measures using IF. Some of  these measures are complex and not outputting the expected result. As troubleshoot step, I started breaking them down and testing each smaller segment individually, and noticed blank results every time my IF condition was expected to TRUE according to my data.

 

It got to the point where I was comparing columns to themselves (so a IF TRUE = TRUE  type of situation) just to test the IF formula itself, and still got blank results in my measures. So I went to the new DAX Queries tab to run the simplest test I could think of:

 

EVALUATE
    {
      ( IF(1 = 1, TRUE(), FALSE()) )                --> 1 =1, I expect TRUE as output
      , ( IF(0, TRUE(), FALSE()) )               --> 1 is not 0, I expect FALSE as output    
    }
 
My expectation was to get TRUE in the first IF and FALSE in the second IF, but instead I got blank on both (screenshot below). Is this the expected output of both TRUE() and FALSE()? Shouldn't I get TRUE and FALSE as an output instead?
 
F_Fitti_1-1704936910471.png

 


 

 

2 ACCEPTED SOLUTIONS
VahidDM
Super User
Super User

Hey @F_Fitti 

 

That's a known issue and will be fixed in the next update.

BTW, if you test that on Dax Studio, you will get the right result.

 

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

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

View solution in original post

That's an issue in DAX QUERY view and won't affect any of your measures or any other areas 

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

View solution in original post

3 REPLIES 3
F_Fitti
Advocate II
Advocate II

Thank you so much for the super fast answer! Do you know where to find more information about this issue? 

 

I'm wondering if this issue means that any of my measures could suddenly result incorrectly out of the blue (in content already published in the service)? 

 

 And also trying to determine whether this issue means  all measures/logic that rely on IF statements resulting to either TRUE or FALSE will not work properly for now, or whether it's just an issue in the sense that the output on the screen is blank but the logic behind the evaluation itself is working as expected. Would you happen to know?

That's an issue in DAX QUERY view and won't affect any of your measures or any other areas 

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

VahidDM
Super User
Super User

Hey @F_Fitti 

 

That's a known issue and will be fixed in the next update.

BTW, if you test that on Dax Studio, you will get the right result.

 

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

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

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.