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

Announcements
Solving the Informatica Dilemma: On-Demand Briefing - Watch On Demand!
cancel
Showing results for 
Search instead for 
Did you mean: 
Purushothaman
Partner - Creator III
Partner - Creator III

2 by 3 Majority >= Cummulative sum Bucket

Hi @vinieme12 ,

I got stuck in this requirement:

I want the dimension name of Audiencesensetating which is in of 2/3 majority and range sum count.

For example: 

The 2/3 Majority count for 13 is 9. The PG12, falls under 2/3 majority count and Rangesum. Hence I need the PG12 should be highlighted. 

Purushothaman_0-1678096658708.png

 

I have attached the QVF

 

Please help!!

Thank you!

 

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

try below

if (
Min(total aggr( if( rangesum( above(count(AudienceSensorRating),0,RowNo())) >= (count(total AudienceSensorRating)*(2/3))
, SensorRanking ) ,(AudienceSensorRating,(=Max(SensorRanking),ASC)))) = min(SensorRanking) , red() )

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
vinieme12
Champion III
Champion III

Add Below background color expression

 


= aggr( if( rangesum( above(count(AudienceSensorRating),0,RowNo())) >= (count(total AudienceSensorRating)*(2/3)), red()) ,(AudienceSensorRating,(=Max(SensorRanking),ASC)))

 

vinieme12_1-1678184659045.png

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Purushothaman
Partner - Creator III
Partner - Creator III
Author

Hi @vinieme12 ,

Is it possible to Highlight only PG12, as it falls between 2/3 Majority Count and RanesumCount

Purushothaman_0-1678188112886.png

Your help is greatly appreciated. Thanks a lot 🙂

 

 

vinieme12
Champion III
Champion III

try below

if (
Min(total aggr( if( rangesum( above(count(AudienceSensorRating),0,RowNo())) >= (count(total AudienceSensorRating)*(2/3))
, SensorRanking ) ,(AudienceSensorRating,(=Max(SensorRanking),ASC)))) = min(SensorRanking) , red() )

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Purushothaman
Partner - Creator III
Partner - Creator III
Author

Hi @vinieme12 ,

You are genius!!  Yes its working!!!

Purushothaman_0-1678247023986.png

 

Thanks a lot for your great help!! Much Appreciated..