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
sreyes10
Helper I
Helper I

Conditional Formatting not is not working

Good day,

 

I have created a report and some tables with a conditional formatting. With one table, I had the option to select wheter it is a number or a percentage. Capture.JPG

However, I have tried to create a new table with its conditional formatting. It didnt appear the option to select number and it wasnt working. I also tried with other reports and I think this conditional formatting is not working.

 

Caputre2.JPG

Do you know what is happening? I hope you can help me. 

Thank you very much

 
1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@sreyes10 ,

 

I would suggest you create a new calculate column using dax below and do the summarization operation on the new column:

New Column =
IF ( Table[Boolean] = TRUE (), 1, 0 )

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yuta-msft
Community Support
Community Support

@sreyes10 ,

 

I would suggest you create a new calculate column using dax below and do the summarization operation on the new column:

New Column =
IF ( Table[Boolean] = TRUE (), 1, 0 )

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

Create a measure that return color and use like

https://community.powerbi.com/t5/Desktop/Conditional-Formatting-not-working/m-p/827603

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

Hello,

 

But I need to put a background in the field. It could be possible?

What @amitchandak  suggested could work...sample code from something I worked on

ProgramEnrollmentStatusColor = 
    SWITCH(
        ProgramEnrollments[ProgramEnrollmentStatus],
        "Active", "#3FB3E2",
        "Completed", "#47C0BA", 
        "Expired", "#E5417A",
        "Abandoned", "#FCD722",
        BLANK()
    )

Substitute the status with your values and you can Google for the hex codes for the colors you want.

After you create the column/measure for the color, in conditional formatting you want to format by field value.

littlemojopuppy
Community Champion
Community Champion

Data type issue?  The second one has values of 0 and 1...is that a Boolean field?

Hello,

 

It could be a boolean, however it is 0 or 1, and I need the sumaration.

 

 

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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