Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show total and 2 conditional values in chart

Hi i have a below mentioned data

namesales 2014sales 2015growth
A100200100
B20030050
C30040033
D40050025

Now i want to show a chart

1) growth of company with name B

2) growth of company with highest sales in 2015 or rank one in sales 2015 i.e,D

3 total growth

CHART.jpg

thanks in advance

sanjay

6 Replies
sasikanth
Master
Master

Use three Expressions

1) SUM(if(NAME='B',Growth))

2)sum(if(aggr(rank(sum(Growth))=1,NAME),Growth))

3)Total Growth

buzzy996
Master II
Master II

pfa,

Not applicable
Author

Hi Shiva,

The issue is I cannot see the names of companies.... since there is no dimension in it

I have achieved the same earlier...what you have done

however i want the names also ... so that i can show what the selected company's growth is and who is its best competitor(& its growth) and the market growth is.

buzzy996
Master II
Master II

u like tis?

Not applicable
Author

Hi Shiva

For expression A, I dont want max of growth

I want the growth of company whose sales is max in 2015 ie, A

your expression is simply max(growth)

Not applicable
Author

sorry i mentioned it as A earlier how ever its D