Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello All,
I have created a field list called OrderStatusFieldList. I need to format the background color of one of the fields in the list, based on the value in a measure.
Here is how I created the field in the field list:
Solved! Go to Solution.
Hi @asbpowerbi
Not sure if this is the problem but, you may need to include the sharp before the colour
OrderNum-ColorCode =
VAR flag = SELECTEDVALUE(Orders[OrderFlag])
Return Switch(flag, "E", "#C24954",
"P", "#C24954",
"A", "#F4944D",
"R", "#F4944D",
"M", "#F4944D",
"D", "#335668",
"C", "White",
Hi @asbpowerbi
Not sure if this is the problem but, you may need to include the sharp before the colour
OrderNum-ColorCode =
VAR flag = SELECTEDVALUE(Orders[OrderFlag])
Return Switch(flag, "E", "#C24954",
"P", "#C24954",
"A", "#F4944D",
"R", "#F4944D",
"M", "#F4944D",
"D", "#335668",
"C", "White",
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
108 | |
98 | |
39 | |
30 |