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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
bhavvibudagam
Creator II
Creator II

Pivot Table - Top 3 WeekDays

Hi,

In a Pivot Table I have added  Type,Weekday(Sun,Mon,Tue...) as Dimensions and Count(Events) As "Expression".

Now my requirement is have to display Top3 Weekdays as "Green Color" and Remaining weekdays as "Blue color".

Can any one please help me to do.

Thanks.

12 Replies
settu_periasamy
Master III
Master III

It would be good to suggest if you provide the sample.

sunny_talwar

May be this:

=If(Sum(Aggr(Count({<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'}>} EVENT_NUMBER), CDTS_WeekDay))>= Max(TOTAL Aggr(Count({<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'}>}EVENT_NUMBER), CDTS_WeekDay), 3), RGB(155,187,89),RGB(149,179,215))

bhavvibudagam
Creator II
Creator II
Author

=If(SecondaryDimensionality() = 1, If(Count(TOTAL <CDTS_WeekDay>{<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'}>} EVENT_NUMBER) >=

Max(TOTAL Aggr(Count({<CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'}>}EVENT_NUMBER), CDTS_WeekDay), 3),

RGB(155,187,89),RGB(149,179,215)))