Forum Discussion

rajasekar_o's avatar
rajasekar_o
Helper V
7 months ago
Solved

Background color Set

hi team How  to set backgrount color for a.Revanue,Total A.Revennue ,B.Expense,Total B.Expense
  • v-sshirivolu's avatar
    7 months ago

    Hi rajasekar_o ,

    You can achieve different background colors for specific rows in a Matrix by using a measure and applying it through conditional formatting.

    Create a background color measure - 

    Row Background Color =
    SWITCH (
    SELECTEDVALUE ( Financials[Description] ),
    "A.Revenue", "#E3F2FD",
    "Total A.Revenue", "#90CAF9",
    "B.Expense", "#FCE4EC",
    "Total B.Expense", "#F48FB1",
    "#FFFFFF"
    )

     

    Please find the below attached .pbix file for your reference.