Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
38 | |
28 | |
26 |
User | Count |
---|---|
99 | |
87 | |
45 | |
43 | |
35 |