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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
georgeD
Contributor II
Contributor II

Margin_ bottom 10 customers

Hi everyone ,

I have the [cost] value and the [sales] per transaction and per costumer. in my data there are customers without any transaction. so i want to make a table or a chart with bottom 10 margin customers. 

How could i make this?

Thanks in advance

Labels (7)
1 Solution

Accepted Solutions
georgeD
Contributor II
Contributor II
Author

Thanks for your answer.

the second solution , i can't use it because im in trial cloud version and there isn't.

 

so i,m trying the first solution. i want % margin so wrote this:

=Aggr( if( Rank(-(1-sum([cost])/sum([sales]))) <= 5, [store] ), [store] ).

but a six store appered  in my table (picture). how can i remove it ? did i do something wrong??

 

georgeD_0-1652096393591.png

 

View solution in original post

6 Replies
vinieme12
Champion III
Champion III

Two Options

1) In your chart add a calculated dimension

=Aggr( if( Rank(-Sum(Margin)) <= 10, [Customer] ), [CustomerID] )  <<< uncheck show null values for this dimension

 

Or

2)

Add MEasure = sum(Margin)

Add Dimension = Customer

now choose limitation = Fixed Number   >> Bottom >> then input number of values

qlikCommunity1.PNG

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

Thanks for your answer.

the second solution , i can't use it because im in trial cloud version and there isn't.

 

so i,m trying the first solution. i want % margin so wrote this:

=Aggr( if( Rank(-(1-sum([cost])/sum([sales]))) <= 5, [store] ), [store] ).

but a six store appered  in my table (picture). how can i remove it ? did i do something wrong??

 

georgeD_0-1652096393591.png

 

vinieme12
Champion III
Champion III

just uncheck show null values for that dimension

qlikCommunity1.PNG

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

it seems very simple but in my version there isnt this option (picture), maybe because it is trial , i dont know. I there another way?

georgeD_0-1652101675565.png

 

vinieme12
Champion III
Champion III

yep looks like a limitation of the trial version

1) Try option 2 then

2) OR another option is to restrict the Measure and not the dimension

Dimension = [store]

Measure =if( Rank(-(1-sum([cost])/sum([sales]))) <= 5, -(1-sum([cost])/sum([sales])))  )

 

Then under in properties panel,  Add-On  >> Data Handling >> uncheck Include Zero values

 

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

Umfortunately, neither this work it because i cant find the "Add-On >> Data Handling" 😠.

i ll use the second solution wiht aggr funtion.

 

thans a lot for your time