Pie Charts have an ItemcColorSet which lets you specify a list of colors for each additional slice. Other items do not.
For instance, I have a Gallery with many rectangles that I want to color based on other content. I have a solution, but I am interested in a more elegant solution. Below is the formula I am currently using, but my criteria is much more complicated, so things are not as pretty.
RGBA( LookUp(colorcode, ThisItem.data = criteria, Num), LookUp(colorcode, ThisItem.data = criteria, Num), LookUp(colorcode, ThisItem.data = criteria, Num), LookUp(colorcode, ThisItem.data = criteria, Num))
Each LookUp corresponds to a different color. The first one is the Number for Red, the next is Green, and so on. All of the information is in a table colorcode.
Is there a way to pull up all four of those numbers in one lookup instead of four? Finding other solutions to this would help with creating universal styles more easily.

Report
All responses (
Answers (