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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Zack92
Helper III
Helper III

Conditional Issue, any help?

Hello,

I'm having a bit of trouble with something and I was hoping you could help me out. I'm trying to add a conditional format to the background of my matrix table, but it's giving me some errors. The error message is super unhelpful and it's not telling me what's wrong or how to fix it. I've been trying to add it as a column, but for some reason, it's not working at the table level. So, I thought maybe I could give adding a measure a shot. Any suggestions on how to tackle this?

 

Method

Zack92_0-1713482351126.png

Error

Zack92_1-1713482379143.png

Code

Color_Idlev = 
SWITCH(
    TRUE(),
    VALUES(Data[Support Title]) = "Technical Support Engineer"
        && AVERAGE(Data[Idle (Hrs)]) >= 45,
    "#6082B6",
    VALUES(Data[Support Title]) = "Advanced Technical Support Engineer"
        && AVERAGE(Data[Idle (Hrs)]) >= 45,
    "#6082B6",
    VALUES(Data[Support Title]) = "Senior Technical Support Engineer"
        && AVERAGE(Data[Idle (Hrs)]) >= 75,
    "#6082B6",

    ""
)

Links
Files
https://drive.google.com/file/d/1rlnDUc3cYCgsuUyXYzfzA52YnKZpHIbH/view?usp=sharing 
Data
https://drive.google.com/file/d/1KC6chRm9q4aBH2FqDCvKto6_4PpJmCeu/view?usp=sharing 

Thank you so much 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Zack92 

 

In your SWITCH try using SELECTEDVALUE insead of VALUES

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @Zack92 

 

In your SWITCH try using SELECTEDVALUE insead of VALUES

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


@PhilipTreacy  thank you for the help 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.