Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a table that needs a background color of 80 percentage sales are in Yellow color and rest are in blue color.
how to achieve this in Qlik Sense.
Hi,
Try below code;
if(
RangeSum(above(TOTAL (sum(Sales)/sum(total Sales)), 1, RowNo(TOTAL)))<=0.8,yellow(),blue()
)
You should add this to every column's background color expression tab.
Hi,
This is not working, if I apply this to my Table box then my sorting is not working.
If we use Above function then sorting will not work. Any other fix for this? thanks for your try so far. 🙂
Hi,
What is your sorting expression?
Hi,
My sorting orders are
1. Total Sales%
2. Sales
Hi,
Can you try below expression?
Aggr(
If(Rangesum(Above(Sum(Sales)/Sum(total Sales),1,RowNo()))<=0.8, yellow(),
blue()),
(ID,(=Sum(Sales)/sum(total Sales),Desc))
)