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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
NicDidds
Frequent Visitor

Conditional formatting on boolean values billable v non billable

OK, I have come to a complete stop and frustration....

 

I have timesheets that are sorted in data column 'Billable'  False or True

 

I am trying to create reports to seperate this but I am at a loss how to do this.

 

Help please - greatly appreciated

2 ACCEPTED SOLUTIONS
Mariusz
Community Champion
Community Champion

Hi @NicDidds 

 

you can use matrix and use billable true/false column, or if you want to use conditional formating you can convert your true/false column to integer and use it for conditional formatting as below.

Measure = SELECTEDVALUE( table[Column] ) + 0

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn


 

View solution in original post

Hi @NicDidds ,

 

You need a measure as below:

 

Measure = SELECTEDVALUE( 'Table'[Column1] ) + 0

 

Then in  the table visual,right click on the column field>choose conditional formatting>Background color:

Annotation 2020-04-08 153326.png

 

Then make the setting as below:

Annotation 2020-04-08 153501.png

And you will see:

Annotation 2020-04-08 153559.png

 

For the related .pbix file,pls click here.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

5 REPLIES 5
Mariusz
Community Champion
Community Champion

Hi @NicDidds 

 

you can use matrix and use billable true/false column, or if you want to use conditional formating you can convert your true/false column to integer and use it for conditional formatting as below.

Measure = SELECTEDVALUE( table[Column] ) + 0

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn


 

amitchandak
Super User
Super User

Boolean can be treated as 1 and 0. Try with that.

Also refer https://community.powerbi.com/t5/Desktop/Conditional-formatting-on-boolean-values-filtered-by-multip...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Sorry... I am a complete beginner!

I have no idea what that means.

 

Is there a measure I can create ?

Hi @NicDidds ,

 

You need a measure as below:

 

Measure = SELECTEDVALUE( 'Table'[Column1] ) + 0

 

Then in  the table visual,right click on the column field>choose conditional formatting>Background color:

Annotation 2020-04-08 153326.png

 

Then make the setting as below:

Annotation 2020-04-08 153501.png

And you will see:

Annotation 2020-04-08 153559.png

 

For the related .pbix file,pls click here.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

In filter or in conditional formatting try value as 1 and 0. If this does not work. Can you share sample data and sample output.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors