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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.