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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Syndicate_Admin
Administrator
Administrator

Cumulative Heat Map

I'm trying to make a heat map of counting locations visited in racks, but what I need is for the color to be by the cumulative.

Example: I have a column about how many times those locations have been visited, from there I would take a percentage from the total, it is ordered from highest to lowest, everything will turn red until the cumulative reaches 30%, yellow when the cumulative is from 30% to 80% and green when the cumulative is 80% to 100%, That would be my logic, but I can't see how to do it in Power BI, with the conditional formatting it has.

Keepin_0-1697288564860.png

Right now it's for the Maximum, and not for the accumulated, someone could help me, thank you.

16 REPLIES 16
Syndicate_Admin
Administrator
Administrator

ok okay, thank you very much for the help, I hope someone else can help me, thank you

Syndicate_Admin
Administrator
Administrator

Could you understand the explanation I gave you, or do you want to have a meeting, to explain better?

I think that's all I could contribute. Maybe someone else can chime in.

Syndicate_Admin
Administrator
Administrator

Keepin_0-1697667304630.png

This would be with a filter per month, it would change the cumulative.

and if I filter by another field (Zone):

The cumulative percentage remains unchanged from the general

Syndicate_Admin
Administrator
Administrator

Good afternoon, inform him to try to replicate it, but I get 100% everything (marked green).

And if I filter by month or a client, it still stays with the same result and doesn't change (highlighted with orange)

Keepin_1-1697664110167.png

Should something be done differently in the code?

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

Syndicate_Admin
Administrator
Administrator

If it's okay to sort by location as secondary, thank you

lbendlin_0-1697658835906.png

 

Syndicate_Admin
Administrator
Administrator

Finger error, if by Descending as the sample data is sorted, sorry

what do you want to do in case of ties? Do you want to use the location as a secondary sort column or do you want to use small random values to break the tie?

Syndicate_Admin
Administrator
Administrator

By ascending please, that is, the logic that is ordered by ascending, and that the first data that reaches 30% of the accumulated color is colored red, from 30% to 80% of the accumulated color yellow and from 80% to 100% of green color, I don't know if you explain me well, thank you

so the opposite of how your sample data is sorted?

lbendlin
Super User
Super User

To confirm, you want them sorted by Qty Mov.  descending?

Syndicate_Admin
Administrator
Administrator

This would be the data: Regarding locations and QTY Mov, perform the cumulative and from that cumulative make the logic that I explained above:

LocationVin.QTY Mov.Zone
104-058-011413 Attracted
105-049-011303 Attracted
110-039-011302 Medium
106-021-011281 Forward
104-054-011243 Attracted
108-049-011243 Attracted
109-007-011231 Forward
105-048-011223 Attracted
117-053-011223 Attracted
104-012-011211 Forward
106-049-011213 Attracted
110-045-011213 Attracted
114-050-011213 Attracted
103-041-011202 Medium
112-050-011203 Attracted
105-063-011193 Attracted
104-053-011183 Attracted
105-002-011181 Forward
105-050-011183 Attracted
108-044-011183 Attracted
109-002-011181 Forward
115-022-011181 Forward
116-034-011182 Medium
103-023-011172 Medium
106-048-011173 Attracted
103-022-011161 Forward
103-024-011162 Medium
104-015-011161 Forward
104-019-011161 Forward
108-041-011162 Medium
109-057-011163 Attracted
114-007-011161 Forward
114-010-011161 Forward
115-006-011161 Forward
103-053-011153 Attracted
104-051-011153 Attracted
105-003-011151 Forward
108-022-011151 Forward
109-051-011153 Attracted
117-041-011152 Medium
117-048-011153 Attracted
103-018-011141 Forward
103-053-044143 Attracted
104-013-011141 Forward
104-014-011141 Forward
105-038-011142 Medium
108-024-011142 Medium
113-013-011141 Forward
114-045-011143 Attracted

Thank you very much, sorry for the delay

lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

amitchandak
Super User
Super User

@Syndicate_Admin , You can use the same logic in measure to return column and use in conditional formatting using field value option

Power BI ABC Analysis using Window function, Dynamic Segmentation: https://youtu.be/A8mQND2xSR4

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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