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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
MIKIEMILLER
Contributor III
Contributor III

Dual Line Graph based on selection

Hello,

I want to make a line graph that has two lines.  The dimension will be the Year.  When you click on a specific unit, one line will show that units total Type B value for each year, and a second line will show the average county type B value for each year.  Below is a small sample of the data.  There are more units, and counties that just this.

Graph.PNG

I would appreciate any help.

11 Replies
sunny_talwar

I used these two expressions

1) Sum({<Type = {'B'}>}Amount)

2) Avg({<Type = {'B'}, Unit, County = p(County)>}Amount)

MIKIEMILLER
Contributor III
Contributor III
Author

I think that worked.  Thank you again.