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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.