Forum Discussion
azure map bubble color as per conditional
To customize the bubble colors in the Azure Map visual in Power BI based on price values, you can follow these steps:
1. **Create a Measure for Price Range**:
First, create a measure in your dataset that assigns a range to each price value. You can use DAX to define this measure based on your price data. For example, if you want to create three price ranges (low, medium, high), you can define the measure like this:
```DAX
Price Range =
SWITCH(
TRUE(),
[Price] <= 50, "Low",
AND([Price] > 50, [Price] <= 100), "Medium",
[Price] > 100, "High"
)
```
Adjust the price ranges and thresholds according to your specific requirements.
2. **Add Price Range Measure to Legend**:
In your Azure Map visual, add the `Price Range` measure to the Legend field. This will categorize the bubbles based on their price ranges.
3. **Customize Bubble Colors**:
Once the legend is added, you can customize the bubble colors based on the price ranges. Follow these steps:
- Click on the Format pane for the Azure Map visual.
- Go to the Legend section.
- Under Legend Items, you should see the categories for your price ranges (e.g., Low, Medium, High).
- Click on each category to customize its color.
- Choose a color for each price range category that you defined in the Price Range measure.
By following these steps, you'll be able to customize the bubble colors in the Azure Map visual based on the price values in your dataset. The bubbles will be colored according to the price ranges you defined, allowing you to visually differentiate between different price levels.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!