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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
ks20
Contributor III
Contributor III

Gradient color in pivot table

Hi Community, 

I need to have background color expression for my pivot table, where the minimum is the lowest value, midpoint is 50% and maximum is the highest value.

Dimension: week,date
Measure:  sum(A)/sum(B)

Any guidance would be appreciated. Thank you!

ks20_0-1691978481661.png

 

Labels (7)
3 Replies
MatheusC
Specialist III
Specialist III

Olá,  @ks20 

Essa expressão pode te atender, altere conforme sua necessidade,

vídeo explicativo. Espero que ajude!
https://youtu.be/DWoootVjdxs


ColorMix2(
  (
  avg([Total-Venda])
  -
  min(total
Agr(
     avg([Total-Venda])
    ,Filial))    
  -
  (
   Max(total
Agr(
      avg([Total-Venda])
     ,Filial))
    -
    min(total
  Agr(
        avg([Total-Venda])
       ,Filial))
   )    
   /
   2  
   )
 
 
  /
 
  (
  (  
   Max(total
Agr(
      avg([Total-Venda])
     ,Filial))
    -
 
    min(total
  Agr(
    avg([Total-Venda])
        ,Filial))
   )
   /
   2
   )
,
Vermelho(),
Verde(),
Amarelo()
)


Did you find a solution to your question? Mark the solution as accepted ✅ and if you found it useful, press the like button!
MatheusC
Specialist III
Specialist III

@ks20 

If you have solved your question, close the topic with the solution to help the qlik community.

Thanks

Did you find a solution to your question? Mark the solution as accepted ✅ and if you found it useful, press the like button!
ks20
Contributor III
Contributor III
Author

Thanks for you response, but the solution din't work in my case.