Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Heatmap using 'Filled Map' based on values

I am struggling with making a heatmap.

I have a data like the below (for most of the countries in the EU)

Type:

PLUG-IN HYBRID

Country:

Switzerland

Number of registered vehicles

1,713

HYBRID ELECTRICSwitzerland6,380
OTHERSSwitzerland1
PETROLSwitzerland6,716
DIESELSwitzerland2,052

 

I am choosing the 'Filled map' option. But I don't know where to create a heatmap there. There are two places I can put the number of cars and it does not work. I am getting the following:

 

MaWrob_0-1732522918437.png

 

or this:

MaWrob_1-1732522950594.png

How can I do this? I tried other map visuals from the Store and they all require a licence

1 ACCEPTED SOLUTION

@Anonymous  You have used Sum of cars in the field value for rules. Replace it with your [% of Grand Total cars] measure. Because Sum of cars will yield whole numbers not percentages.

 

Thanks,

Jai




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @Anonymous ,

Please follow the steps below:

1. This is my %of grand total sales for cars:

1.png

2. Create rules for the filled map:

4.png2.png

3. We could get the results below:

3.png

Best regards,

Lucy Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jai-Rathinavel
Super User
Super User

@Anonymous , Map your country column to the location field of the filled map visual and use Fill Color option available under the Visual settings, create a rule or measure to color the countries based on their number of cars like below.

 

JaiRathinavel_0-1732523453476.png

 

JaiRathinavel_2-1732523496327.png

 

JaiRathinavel_4-1732523571101.png

JaiRathinavel_5-1732523602237.png

 

Did I answer your question ? If yes, please mark this post as a solution.

 

Thanks,

Jai




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

Thank you for your help. The data I have will have a slicer too - so I can select all cars, but can also filter based on type: petrol, diesel etc. I think Fill Colours will only work on static numbers and will not show properly If i select different variations? Do I understand it right?

@Anonymous The heatmap can be dynamically formatted by using a measure based on the slicer selection. In the below file I have categorized the countries ranging from < 20% as red, >30% as yellow and >40% as green. You can refer the measure and tweak your DAX accordingly. Attached the PBIX file here: Download PBIX

 

JaiRathinavel_0-1732528488129.png

 

Did I answer your question ? If yes, please mark this post as a solution.

 

Thanks,

Jai

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

Hello @Jai-Rathinavel thanks for that, I think I might just make it work. I am struggling with the rules. Can you see what am I doing wrong there?

I have a % of grand total for the cars - showed in a table and the rules, but the map does not show the right colours.

MaWrob_0-1732536721589.png

 

@Anonymous  You have used Sum of cars in the field value for rules. Replace it with your [% of Grand Total cars] measure. Because Sum of cars will yield whole numbers not percentages.

 

Thanks,

Jai




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





rajendraongole1
Super User
Super User

Hi @Anonymous - The Filled Map isn't strictly a heatmap but can emulate one using gradients.

If you need a true heatmap - Mapbox Visual (requires a free account). or Synoptic Panel (create custom map overlays).

rajendraongole1_0-1732523241539.png

 

or 

rajendraongole1_1-1732523320122.png

 

or you can use map visual from power bi as below:

rajendraongole1_2-1732523387312.png

 

 

Hope this helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors