mapboxgl-powerbi icon indicating copy to clipboard operation
mapboxgl-powerbi copied to clipboard

Choropleth: Aggregation function alternatives

Open galapah opened this issue 4 years ago • 2 comments

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

galapah avatar Aug 31 '20 13:08 galapah

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?

Arthur-Ni avatar Oct 08 '20 15:10 Arthur-Ni

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

UlfenB avatar Jan 10 '22 19:01 UlfenB