The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. 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",
User | Count |
---|---|
83 | |
83 | |
37 | |
34 | |
32 |
User | Count |
---|---|
92 | |
79 | |
62 | |
53 | |
51 |