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
DanduMani104
Helper III
Helper III

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 @DanduMani104 ,

 

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 an...

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 @DanduMani104 ,

 

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 an...

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.