Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Size field in the map visual

Hi, everyone. Help needed, please. I have 3 columns (Name, Longitue and Lattitude) that are used to plot a regular map visual. I have two groups of data in the name column - Cities and Villages. I w...
  • mahoneypat's avatar
    6 years ago

    Do you already have a column that indicates if that row is a City or Village?  If not, you can generate a Groups column to do that easily.  See this link on how to do that - https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-grouping-and-binning

     

    Once you have that, you can use a measure that returns a size for each city depending on if it is a City or Village.  For example, you could have one like

     

    Bubble Size = IF(MIN(Date[LocationType]) = "City", 10, 5)

     

    This assumes your new column is called LocationType.  You can put that measure in the Size field.  You'll have to play with the 10 and 5 values to get what you want.  

     

    If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat