Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
oscar_olaya
Partner - Contributor III
Partner - Contributor III

Heatmap Pivot Table Qlikview

Hello!
Is it possible to create a chart like this in Qlikview? Any Example?
Thanks!

Labels (1)
2 Solutions

Accepted Solutions
stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @oscar_olaya 

You want to use the cell background colour expression and the colourmix2 function. This requires three colours which are applied to +1, -1 and 0 respectively. You will need to put your expression in the function and ensure the values fall between 1 and -1. If you already have percentages between 0 and 1 you will need to double them and -1.

colormix2(((sum(Sales) / max(TOTAL Sales))*2)-1, rgb(220,0,0), rgb(0,220,0), rgb(200,90,0))

This image is from Sense, but it works the same in QlikView:

stevedark_0-1708333125862.png

Load script to get dummy data for that is:

SalesData:
LOAD
num(RowNo(), '000000') as StoreNo,
floor(Rand()*100000) as Sales
AUTOGENERATE(20000);

Hope that helps.

Steve

View solution in original post

oscar_olaya
Partner - Contributor III
Partner - Contributor III
Author

@woutermak Thank you! I complemented it with the gradient

View solution in original post

4 Replies
woutermak
Partner - Creator III
Partner - Creator III

You can use the background color. If you have a range of 0 to 100%, you can use 10 colors to color your cel. Use Argb to use transparency. See in this case value 9. Same as 6 with more transparency.

woutermak_1-1708095767335.png

 

 

woutermak_0-1708095719244.png

 

stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @oscar_olaya 

You want to use the cell background colour expression and the colourmix2 function. This requires three colours which are applied to +1, -1 and 0 respectively. You will need to put your expression in the function and ensure the values fall between 1 and -1. If you already have percentages between 0 and 1 you will need to double them and -1.

colormix2(((sum(Sales) / max(TOTAL Sales))*2)-1, rgb(220,0,0), rgb(0,220,0), rgb(200,90,0))

This image is from Sense, but it works the same in QlikView:

stevedark_0-1708333125862.png

Load script to get dummy data for that is:

SalesData:
LOAD
num(RowNo(), '000000') as StoreNo,
floor(Rand()*100000) as Sales
AUTOGENERATE(20000);

Hope that helps.

Steve

oscar_olaya
Partner - Contributor III
Partner - Contributor III
Author

@stevedark Excellent! Just right! Thank you!

oscar_olaya
Partner - Contributor III
Partner - Contributor III
Author

@woutermak Thank you! I complemented it with the gradient