mapbox / mapboxgl-powerbi

Mapbox Visual for Power BI - High performance, custom map visuals for Power BI dashboards. This version of Mapbox Visual for Microsoft Power BI is no longer maintained. You can find the live and maintained version of the plugin at: https://github.com/starschema/mapboxgl-powerbi.
MIT License
127 stars 52 forks source link

Choropleth: Aggregation function alternatives #381

Closed galapah closed 1 year ago

galapah commented 4 years ago

Hello,

I am visualizing hierarchical geo-demographic data from Eurostat with Mapbox Choropleth.

In the table, I provide data for the bottom layer and the visual calculates the aggregated numbers for the upper layers. The problem is that it sums the values. Since my numerical column is on the relative scale (%), summing does not make sense.

Can I specify another aggregation function (e.g. Mean)?

Best, Jan

Arthur-Ni commented 4 years ago

Hi galapah, I'm trying to do something similar. Can you explain to me how you use the multiple layers (type of layers on different levels), and how you get the visual to sum when zooming out?

UlfenB commented 2 years ago

It's possible to use your own DAX measures and implement your own aggregation functions.