Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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",