Forum Discussion

HaiVN's avatar
HaiVN
Helper III
3 years ago

Legends

Hello,

 

Can anyone shows me how to create a legend (dynamic) to a shape map wich is similar to bellow?. The values of min and max will be changed when we change the varibles. Thank you!

 

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    HaiVN Sorry, having trouble following, can you post sample data as text and expected output?
    Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

    Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

    The most important parts are:
    1. Sample data as text, use the table tool in the editing bar
    2. Expected output from sample data
    3. Explanation in words of how to get from 1. to 2.

    • HaiVN's avatar
      HaiVN
      Helper III

      Hello _Greg Deckler,

       

      I am sorry for unclear in my last question. I have the data as follows:

       

       

      I want to use shape map with the location at the columns "city", color will range with the value in column ( cover%). I will have a slice with column Land type. The shape map has a legend in which each time I change the slice from A to B or to C, the color  at the legend and shape map) change with the value at column "cover%". The example of the legend for Land type A is as follows (0% has always  "white")

      and the shape map for Land type A can be as follows:

       

      Thanks!