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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ChrisRafer5
New Member

Why is this function returning a boolean value?

So i have this dashboard where im trying to create a function where i have two if's logicals results.

When i do It like so:

Name = If(isblank('protocolos 1[tempo em atendimento]) && 'protocolos 1[status] = "Aberto" && 'protocolos 1[comunicação] = "Passivo", return a logical count.

But like that actually Works, but not complety to acquire the result i want, thats why i tried putz together this 

" && If(isblank('protocolos 1[tempo em atendimento]) && 'protocolos 1[status] = "Fechado" && 'protocolos 1[comunicação] = "Passivo" (...)"

But It keeps returning me a boolean value out of the column results, any thoughs about It?

20231009_120828.jpg

2 REPLIES 2
ChrisRafer5
New Member

Yes, in this mean while i posted i used only one & but It retorned a weird big number in think It sum them? 

20231009_124557.jpg

Greg_Deckler
Community Champion
Community Champion

@ChrisRafer5 Not clear to me what exactly you are trying to accomplish but you are logically and'ing ( && ) two values which means that you will get a boolean value as a result. Basically your formula can be broken down to 

 

(some number) && (some other number)

 

That is going to return TRUE or FALSE.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.