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

How to classify data based on percentile

Hi:

I have a question regarding classifying companies based on their revenue. . Following is my data

Capture.PNG

What I want is that,

  • Based on what I select in Filters (TechName, Region, Country and DataYear) some companies are short listed.
  • Then I want to rank those companies based on their revenue percentile, as " 3 = High, 2 = Med and 1 = Low", as follows, ,
    • If(revenuePercentile > .75, 3, if(revenuePercentile < .25, 1, 2))
  • Question is how can I calculate the revenuePercentile that's also dynamically updated based on group of companies being filtered.

I am quite new and any detailed solution/help will be highly appreciated. I tried using fractile() function but can't really figure out as how to use it.

stalwar1

1 Reply
Anonymous
Not applicable
Author

I am adding an expression in the above straight chart as follow,

if(Revenue>=Fractile(Total Revenue, 0.75), 3,

   if(Revenue<Fractile(Total Revenue, 0.25), 1, 2))

Does it make sense, , if not then what's the best way to do this?