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: 
Anonymous
Not applicable

Pivot Table: Color code

Hi everyone,

I am trying to color code my pivot table. The value are ranging from -1 to 1. i try to make the data above 0 in Green and below 0 in red. And the same time, the color is also value associated.

the current expression i use is:

ColorMix2(Sum({$<country_cde={"us"}>}[pivot_data.value])/before(Sum({$<country_cde={"us"}>}[pivot_data.value]))-1,RGB(128,0,0),rgb(0,100,0))

but the color is showed is below: Screen Shot 2018-01-24 at 1.28.31 PM.png

any suggestion?'

Thanks,

Nathan

2 Replies
petter
Partner - Champion III
Partner - Champion III

Do you have a sample app or sample data we could tweak - so you get some suggestions quicker?

Anonymous
Not applicable
Author

  ... no .. and i could not share the original data. sorry about that.