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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
o59393
Post Prodigy
Post Prodigy

Switch not working correctly

Hi all

 

I created a switch function which should return In, out or blank.

 

The blank should be returned only if the result column is blank:

 

asdadassa1.JPG

 

As seen below, the column logic for the first results are showing blank, but the result is 0, therefore it should return an in or out.

 

This problem is only happening to me with 0 values under the result column. Are results are labeled as decimal.

 

Do you know what could be wrong?


Thanks.

1 ACCEPTED SOLUTION

Hi @PaulDBrown 

 

I tried with double "==" and worked!

 

'Append (Sludge)'[Result]==BLANK(),BLANK(),
 
Thanks 🙂

View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

@o59393 

Not sure if this will work, but try ISBLANK(Append [Result], BLANK(), 

in the first line of the SWITCH function (instead of the expression Append [Result] = BLANK(), BLANK() )





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @PaulDBrown 

 

I tried with double "==" and worked!

 

'Append (Sludge)'[Result]==BLANK(),BLANK(),
 
Thanks 🙂

Helpful resources

Announcements
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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