Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to use selected elements from a bar-chart in another bar-chart

Hi,

I have the following problem:

I select e.g. the “dates of sale” (2014-01-20 & 2014-01-23) in the bar-chart_1 (sales=20.000 & 25.000). In the second bar-chart (in the same alternate state) I shall be able to find out and to show whole “dates of sale” of the past two years that contain “sales data” roughly figures like sales-data in the bar-chart_1 (with sales 20.000 & 25.000).

I’m wondering if that ever possible by Qlikview functions like set analysis?

Thank you for any help.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Rupert,

I solved my quesion by this statement with set:

=sum( {$<DATE={" <$(=$(vDATE) )" }, SALES={"<$(= $(vSALES) )" }>} SALES)

Whereas vDATE = getfieldselections(DATE) and vSALES=getfieldselections(SALES) are the needed variables.

Best regards

View solution in original post

3 Replies
Roop
Specialist
Specialist

I don't think that you will need alternate states - You should be bale to do this using the selections made. I have attached an example for you to review

Hope this helps

Rupert

Anonymous
Not applicable
Author

Thank you Rupert,

I meant whether is that possible to find a value (pattern) from a chart in another one (in the past) like that:

chart_1: date = 1/1/15, value = 5000

chart_2: e.g. statement = sum( {$<~date < {“selected_Date_in_Chart”}>} sales)

               result: date = 5/4/14, value = 4900

                          date = 28/10/13, value = 5100


Is such pattern possible?

Thank you again.

Anonymous
Not applicable
Author

Rupert,

I solved my quesion by this statement with set:

=sum( {$<DATE={" <$(=$(vDATE) )" }, SALES={"<$(= $(vSALES) )" }>} SALES)

Whereas vDATE = getfieldselections(DATE) and vSALES=getfieldselections(SALES) are the needed variables.

Best regards