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: 
Not applicable

Associated Field Selection

Morning.

Need some help please,

I have a listbox, lets call it team leader, there is a feild associated to that team leader, called department, when i select the team Leader, i want a variable to automatically assign the value of the associated department.

I then want to use that variable to show that department statistics using the formulae

(sum({1<Dept='$(vdeptfqc)'>} percentage)/count(distinct {1<Dept='$(vdeptfqc)'>} call_reference_no))/100

Please Assist

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Why do you want to use a variable? 

Does this expression give you the result you need?

(sum({1<Dept=p(Dept)>} percentage)/count(distinct {1<Dept=p(Dept)>} call_reference_no))/100


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Why do you want to use a variable? 

Does this expression give you the result you need?

(sum({1<Dept=p(Dept)>} percentage)/count(distinct {1<Dept=p(Dept)>} call_reference_no))/100


talk is cheap, supply exceeds demand
Not applicable
Author

Hi there,

Thats pure awesomeness, now explain to me what its doing please?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

{1<Dept=p(Dept)>} means disregard all selections, but filter the Dept field to those Dept values that are possible values given the selections made.


talk is cheap, supply exceeds demand