starschema / mapboxgl-powerbi

Mapbox Visual for Power BI - High performance, custom map visuals for Power BI dashboards
https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381472?tab=Overview
MIT License
34 stars 9 forks source link

[BUG] - Tooltip ignoring datatypes and the aggregation type is persistent #63

Open mBoegebjerg opened 1 year ago

mBoegebjerg commented 1 year ago

I have a mapbox visual, with a custom tileset. Whenever, I put a measure into the "Tooltip" field on the visual and hover over the polygons on the map (based on the tileset), the tooltip will ignore any formatting from the measure.

Furthermore, the "aggregation function" under the menu "Choropleth", forces a prefix on the tooltip e.g. if I choose average, and the measure is called Measure1 it will have the name: Average Measure1 in the tooltip.

To Reproduce Steps to reproduce the behavior:

  1. Activate Choropleth on the mapbox visual
  2. Set the following settings:
    • Level = Level 1
    • Custom Tileset
    • Input any custom tileset
  3. Change the aggregation function to Average.

Expected behavior I expect the tooltip to follow the formating of the measure. I expect the prefix (based on the aggregate function) not to be there, to improve flexibility. In many cases, the averaging step is done in the measure, therefore no need to have it aggregate on default in the visual.

Screenshots image In the picture, for the second line in the tooltip, you see the 0.94633 value, above the tooltip is a card with the same measure showing 95%.

Additional context Add any other context about the problem here.