Skip to main content
4 个回答
  1. 2023年7月4日 10:02

    That's a very good example of how something that looks very simple can be demesurately complicated... well, maybe an expert will provide a solution simpler than mine?

    Colors on Tableau are applied on numbers, so I've transformed Gender, Region and Vegan into numbers with the RANK_DENSE function. Here is my region#, I did the same with Gender and Vegan.

    That's a very good example of how something that looks very simple can be demesurately complicated... well, maybe an expert will provide a solution simpler than mine?Now I setup the table with Measure Names and Measure Values, and switch the Mark type to Square. I drag Measure Values to Colors, click the pill and select Use Separate Legends:

    imageNow right-click the legend to Edit Colors and set them as Stepped.

    imageIt matches your spec, however it will be difficult to get a proper legend or label (I have a lead for Gender or Vegan, but none for Regions).

    ---

    Antoine Dinimant

    Freelance consultant, trainer & teacher

0/9000