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! Learn more

Reply
FotFly
Helper II
Helper II

Table Specific column different colour for totals and values

Hi,

 

I have a table in power bi in which I have a lot of columns. I have a specific column that is a measure and I want to highlight the values in the column adding different background colour while making the font for the total the same as the background as the measure is not supposed to sum.

 

Do you know why I cannot set different format for values and totals?

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

The condition in the measure checks if it is in the total row or not. And total has the different condition than each category.

Jihwan_Kim_0-1727369957512.png

 

Jihwan_Kim_1-1727369975162.png

 

background color condition: =
SWITCH (
    TRUE (),
    ISINSCOPE ( data[category] ),
        SWITCH (
            TRUE (),
            [Sales amount:] >= 5, "Green",
            [Sales amount:] >= 2, "Yellow",
            "Red"
        ),
    SWITCH (
        TRUE (),
        [Sales amount:] >= 20, "Green",
        [Sales amount:] >= 10, "Yellow",
        "Red"
    )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @FotFly ,

 

Power BI does not support adjusting the color of the total value for a column. You can adjust the font color of the total row to match the background color, or turn off the total column.

vmengmlimsft_0-1727666843953.png

Could you tell me why you want to hide the total of the measure? If it's because the total of the measure is wrong, you can try SUMX to create another measure to show the correct total.

Here is my test for your reference.

Measure 2 = SUMX(Table,[Measure1])

vmengmlimsft_1-1727667152501.png

 

 

Best regards,

Mengmeng Li

Thank you for the reply. The problem with this measure that I created is that it is not supposed to be summed. The thing is that I can't turn the totals off since there are other columns in the table that are supposed to have a total. I just changed color with conditional formatting.

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

The condition in the measure checks if it is in the total row or not. And total has the different condition than each category.

Jihwan_Kim_0-1727369957512.png

 

Jihwan_Kim_1-1727369975162.png

 

background color condition: =
SWITCH (
    TRUE (),
    ISINSCOPE ( data[category] ),
        SWITCH (
            TRUE (),
            [Sales amount:] >= 5, "Green",
            [Sales amount:] >= 2, "Yellow",
            "Red"
        ),
    SWITCH (
        TRUE (),
        [Sales amount:] >= 20, "Green",
        [Sales amount:] >= 10, "Yellow",
        "Red"
    )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you for your answer. I was refering to this functionality under visualization and not the cell elements.

FotFly_0-1727379554158.png

I was hoping I could avoid some extra work creating a measure to distinguish between total and other values to add background or font color under "Cell elements".

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