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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Heat Map

Hello team, I need Hep with this

DanduMani104_0-1705497334516.png

I have this type of visual in  dashboard...I need to create a heat map for this Visual..
I kno the procedure to create a condition Formating...
Can you Suggest me the Colour Codes For this Visual
like this

DanduMani104_1-1705497523421.png

 



1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

As for the color codes, you can use the following DAX code to assign colors based on the values of your measure:

Measure Value Color = 
SWITCH (
    TRUE (),
    [Measure Value] <= 1, "#000000",
    [Measure Value] < 99.5, "#e60000",
    [Measure Value] < 100.5, "#000000",
    [Measure Value] < 999999, "#2d862d",
    "#000000"
)

This code assigns colors to the measure values based on the conditions specified in the SWITCH function. You can modify the color codes and conditions as per your requirements.

vtangjiemsft_1-1705543853675.png

 

vtangjiemsft_0-1705543802487.png

If you wish to set the gradient color, you can select the format style of [Gradient]. Or you can choose to custom  visual.

vtangjiemsft_2-1705544599559.png

vtangjiemsft_4-1705544886188.png

Please refer to the following documents for more information.

Changing colours using DAX and conditional formatting in Power BI - Data Bear - Power BI Training and Consulting

How to Create a Power BI Heatmap | DataCamp

Creating a Table Heatmap in Power BI - Power BI Docs

 

Best Regards,

Neeko Tang

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

As for the color codes, you can use the following DAX code to assign colors based on the values of your measure:

Measure Value Color = 
SWITCH (
    TRUE (),
    [Measure Value] <= 1, "#000000",
    [Measure Value] < 99.5, "#e60000",
    [Measure Value] < 100.5, "#000000",
    [Measure Value] < 999999, "#2d862d",
    "#000000"
)

This code assigns colors to the measure values based on the conditions specified in the SWITCH function. You can modify the color codes and conditions as per your requirements.

vtangjiemsft_1-1705543853675.png

 

vtangjiemsft_0-1705543802487.png

If you wish to set the gradient color, you can select the format style of [Gradient]. Or you can choose to custom  visual.

vtangjiemsft_2-1705544599559.png

vtangjiemsft_4-1705544886188.png

Please refer to the following documents for more information.

Changing colours using DAX and conditional formatting in Power BI - Data Bear - Power BI Training and Consulting

How to Create a Power BI Heatmap | DataCamp

Creating a Table Heatmap in Power BI - Power BI Docs

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.