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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.