Can I use the color type in a virtual column?...

Can I use the color type in a virtual column?

If so, how could I show:

[Col1] if true = red, OR([col2] if true=blue, [col3] if true = blue [col5] if true = yellow

0 12 953
12 REPLIES 12

Yes you can use color type with the virtual column.

okay, how?

Iโ€™ve never used this column type before.

Is it only one color per row?

or can I have more than one color if all criteria met?

Save & Verify the editor and see the influence.

The app formula result just needs to be a color like =IF(ISBLANK([Column]),โ€œRedโ€,โ€œBlueโ€)

@Aleksi_Alkio this is what i want but i keep getting an error.

Donโ€™t think iโ€™ve mentioned today how much i hate expressionsโ€ฆ

IF(ISNOTBLANK([DementiaAlzheimers]), โ€œRedโ€, โ€œโ€), IF(ISNOTBLANK([ElectricWheelchair], โ€œYellowโ€, โ€œโ€), IF(ISNOTBLANK([NeedMobilityAssist], โ€œYellowโ€, โ€œโ€), IF(ISNOTBLANK([WheelchairOrScooter], โ€œYellowโ€, โ€œโ€), IF(ISNOTBLANK([InsulinDep], โ€œBlueโ€, โ€œโ€)

IFS(ISNOTBLANK([DementiaAlzheimers]),โ€œRedโ€), IFS(ISNOTBLANK([ElectricWheelchair]), โ€œYellowโ€), IFS(ISNOTBLANK([NeedMobilityAssist]), โ€œYellowโ€), IFS(ISNOTBLANK([WheelchairOrScooter]), โ€œYellowโ€), IFS(ISNOTBLANK([InsulinDep]), โ€œBlueโ€)

When I verify the expression it cuts off after the first IFS statementโ€ฆshould everything show here?

Itโ€™s just doesnโ€™t show the whole, but it should work.

It appeared to show when I tested it, but then in the table view only the red color showed up,

IF(ISNOTBLANK([DementiaAlzheimers]),โ€œRedโ€, IF(ISNOTBLANK([ElectricWheelchair]), โ€œYellowโ€, IF(ISNOTBLANK([NeedMobilityAssist]), โ€œYellowโ€, IF(ISNOTBLANK([WheelchairOrScooter]), โ€œYellowโ€, IF(ISNOTBLANK([InsulinDep]), โ€œBlueโ€,"")))))

Thank you.

Couldnโ€™t get all three colors to show in one column so I ended up creating 3โ€ฆwould like the columns closer together but this works for now.

In my experience, Virtual Columns don't accept color type in the case of:

IFS(

[Stock actual] > [Stock mรญnimo], "Green",
[Stock actual] = [Stock mรญnimo], "Yellow",
[Stock actual] < [Stock mรญnimo], "Red"

)

Top Labels in this Space