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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
jcastr02
Post Prodigy
Post Prodigy

conditional formatting column header

Is there a way to change the background color of a column header of a table based on the value of another field.  For example based on the Yes/No id like for the color of the header to change to respective color below.  

Screenshot 2024-02-13 114441.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jcastr02 

 

Unfortunately that the power bi doesn't support to change the background of the matrix or table's header.

Maybe you can try this:

I create a set of sample:

vzhengdxumsft_0-1707878811250.png

 

Then create a new table:

Table 2 = 
    ADDCOLUMNS(
        VALUES('Table (3)'[Column1]),
        "Y?N",SWITCH(
            'Table (3)'[Column1],
            "AA",UNICHAR(9989)&"AA",
            "BB",UNICHAR(10060)&"BB",
            "CC",UNICHAR(10060)&"CC",
            "DD",UNICHAR(9989)&"DD"
        )
    )

vzhengdxumsft_1-1707878849210.png

The result is as follow:

vzhengdxumsft_2-1707878887097.png

Link of unichar function:

UNICHAR function (DAX) - DAX | Microsoft Learn

The unicode of emoji:

Emoji unicode characters for use on the web (timwhitlock.info)

You need to transform the hex to dec:

vzhengdxumsft_3-1707878906153.png

 

 

Best Regards,

Zhengdong Xu

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

1 REPLY 1
Anonymous
Not applicable

Hi @jcastr02 

 

Unfortunately that the power bi doesn't support to change the background of the matrix or table's header.

Maybe you can try this:

I create a set of sample:

vzhengdxumsft_0-1707878811250.png

 

Then create a new table:

Table 2 = 
    ADDCOLUMNS(
        VALUES('Table (3)'[Column1]),
        "Y?N",SWITCH(
            'Table (3)'[Column1],
            "AA",UNICHAR(9989)&"AA",
            "BB",UNICHAR(10060)&"BB",
            "CC",UNICHAR(10060)&"CC",
            "DD",UNICHAR(9989)&"DD"
        )
    )

vzhengdxumsft_1-1707878849210.png

The result is as follow:

vzhengdxumsft_2-1707878887097.png

Link of unichar function:

UNICHAR function (DAX) - DAX | Microsoft Learn

The unicode of emoji:

Emoji unicode characters for use on the web (timwhitlock.info)

You need to transform the hex to dec:

vzhengdxumsft_3-1707878906153.png

 

 

Best Regards,

Zhengdong Xu

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

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.