Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Question

Is there a way I can show the top 5 claims and the top 5 incomes for each month in each year and the amount of those claims and income for my data set.

1 Solution

Accepted Solutions
buzzy996
Master II
Master II

from dimensionlimits tab,

1. click on ur dimension from life side (Limits)

2.Options box uncheck Show others!,on same tab.

View solution in original post

41 Replies
MK_QSL
MVP
MVP

Create a Pivot Table

Dimensions


Posting Year

Posting Month

%PolicyID

Expression

SUM({<Type = {'Claims'}, %PolicyID = {"=Rank(SUM({<Type = {'Claims'}>}Amount),4)<=5"}>}Amount)

giakoum
Partner - Master II
Partner - Master II

something like that?

Capture.PNG

MK_QSL
MVP
MVP

Looks like my above solution would not work..

Here is the new one..

Create a Pivot Table

Dimensions

Posting Year

Posting Month

Type

=IF(Aggr(Rank(SUM(Amount),4),[Posting Month],Type,[Posting Year],%PolicyID)<=5,%PolicyID)

The last one is Calculated Dimension

Expression

SUM({<Type = {'Claims'}>}Amount)

Same way you can find the Income also..

Hope this will help !

Dont forget to select SHow Partial Sum From Presentation Tab...

Not applicable
Author

Hi Stephen

Can you not try work it out yourself?

Not applicable
Author

Hi Manish,

I don't understand what you mean by calculated dimension.

Regards,

Stephen.

Not applicable
Author

Hi Ioannis,

Yes, like above but i do not know how to write the code so the top 5 is in a bar chart

giakoum
Partner - Master II
Partner - Master II

I reduced the data to 2011 2012 to make the file smaller

Not applicable
Author

Hi Manish,

Thanks for your help, this is amazing but far too detailed for what I am looking for. I am trying to show the top 5 claims in each year and represent it in a bar chart, I now don't think I need it per month. I also would like to show the lowest 5 claims in each year

Regards,

Stephen

MK_QSL
MVP
MVP

You mentioned in your question,,, each month and each year !!!!

Ok..so

Create a Bar Chart

Dimension

Posting Year

Type

=IF(Aggr(Rank(SUM(Amount),4),Type,[Posting Year],%PolicyID)<=5,%PolicyID)

Expression

SUM({<Type = {'Claims'}>}Amount)