Forum Discussion
Anonymous
4 years agoNot applicable
Color chart not repeating itself
Hi All 🙂 I need to make a plot where I have 150 different cities as my legend. The issue is now that the color chart is not repeating itself and just chooses random colors. How can I make it such t...
- 4 years ago
Hi Anonymous ,
How about something like so?
Color = SWITCH ( TRUE (), MAX ( 'Table'[Category] ) IN { "A", "D", "G" }, "Red", MAX ( 'Table'[Category] ) IN { "B", "E", "H" }, "Yellow", MAX ( 'Table'[Category] ) IN { "C", "F" }, "Blue" )For more details, please check the attached .pbix file.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Icey
4 years agoCommunity Support
Hi Anonymous ,
How about something like so?
Color =
SWITCH (
TRUE (),
MAX ( 'Table'[Category] ) IN { "A", "D", "G" }, "Red",
MAX ( 'Table'[Category] ) IN { "B", "E", "H" }, "Yellow",
MAX ( 'Table'[Category] ) IN { "C", "F" }, "Blue"
)
For more details, please check the attached .pbix file.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.