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

General charting questions

Greetings.

I have some general questions.

I have data similar to this..

Name            Branch             Sales

Chikfila          Johnstown        2.3

Chikfila          Frederick           6.7

Chikfila          Windhym           5.1

BK                 Johnstown         1.5

BK                 Frederick           1.6

McD              Johnstown          2.4

McD              Windhym             2.6   

1.  i'd like to have a stacked bar chart that displays always, regardless of filter selections, chikfila sales by branch, so Johnstown 2.3, Frederick 6.7, and Windhym 5.1, and then a sum of all the others, so Others 8.1.  However, if a user selects BK from the filter drop-down, i'd like the chikfila sales to stay the same, Johnstown 2.3, Frederick 6.7, and Windhym 5.1, and the Others stacked bar to switch to the sum of BK Johnstown and Frederick of 3.1 only.

so, based on what i'm describing, would my Chikfila expression be

sum({1}{$<Name={'Chikfila'}>} Sales)?

However, this doesn't break chikfila out by the branches... how do I get it to break out the individual branches as well?  would I aggr it by branch?  is this possible?

My others sum would be sum of sales not equal to Chikfila...what is that syntax??  sum({$<Name NOT EQUAL TO {'Chikfila'}>} Sales)?

2.  how can I ensure that regardless of other page filters/selections that these charts always display what is unique to this individual tab?

Thanks,

Maria

14 Replies
Anonymous
Not applicable
Author

no..the bar charts.  I'd like every bar chart to have the branches of century 21 new millennium sliced out on the bottom blue, and then for the red bar, I'd just like a lump sum of the others...I don't care about the companies and/or the branches.  I'm trying to show how much c21nm represents out of all listings...but I want to show how much each branch of c21nm represents out of all the listings.

sunny_talwar

Something like this?

Capture.PNG

Anonymous
Not applicable
Author

yes.  what are the blue, yellow, green, and red bars?  what is the expression you're using for that? 

sunny_talwar

Purples are everything else and Blue, yellow, green and red bars are the branchs for C21.... I have attached the sample app here: Re: General charting questions

Expression is this

=Pick(Dim,

Sum({1<ListOfficeName={'Century 21 New Millennium'}, ListDateFlag={1}>} OriginalListPrice),

Sum({1<ListOfficeName-={'Century 21 New Millennium'}, ListDateFlag={1}>} OriginalListPrice))

Dimensions

MonthYear

=Pick(Dim, ListOfficeNameBranch)

Where Dim is created in the script like this

Dim:

LOAD * Inline [

Dim

1

2

];

Anonymous
Not applicable
Author

thank you!