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

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

Reply
alielzaa
Frequent Visitor

Measure with If statement checking for value

Hey everyone,

 

In my dataset I have a column called "Isclosed" which has a value of True or False.

 

In my vizualisation I am trying to create a "card" or anything that display "Closed" if the value is True (True=Closed) and "Active" if the value False (False=Active).

 

What kind of measure can I do to help me out with this?

 

Thank you

1 ACCEPTED SOLUTION

Hi @alielzaa ,
Here is a picture with either a table or a card.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 

Closed.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

8 REPLIES 8
alielzaa
Frequent Visitor

UPDATE

 

I have tried to combine a aggregate function like below 

 

 

 

status = If(ALL('TimeExport (3)'[BudgetClosed]) = "True","Closed","Active")
 
but I got this error 
 
error2.PNG
This is most likely because the values in the table are booleans.
any solution would be greatly appreciated!

Hi @alielzaa ,
Try using MAX instead of ALL.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




hey @Nathaniel_C  i appreciate the help,

 

I am still getting this error when using MAX STILL.PNG

Hi @alielzaa ,


I will send you a pbix that has this implemented.

 

Status = IF(MAX( mytable[BudgetClosed]) = "True","Closed","Active")

 


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @alielzaa ,
Here is a picture with either a table or a card.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 

Closed.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hey @Nathaniel_C thanks for the help! I had to first convert the whole column to a text type (as it was boolean) so it did not work before but now it works perfectly.

Nathaniel_C
Community Champion
Community Champion

 

If(table[IsClosed] = "True","Closed","Active")

Hi @alielzaa ,
Try this.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hey there Nathaniel,

 

It keeps giving me a error as I cant select the table[IsClosed]. This is probably because I need a aggregate function? This is what I get

yes.PNG

 

Let me know what you suggest.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.