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

Before Selection and After Selection value Changes

Hi All,

i have a prob, when calculating summations the values changes reason why i don't know, as i request help:

before selection:

TeachersStudentsVisit
Teacher AStudent A2
Teacher AStudent B1

after selection

Output:

TeachersStudentsVisit
Teacher AStudent A0
Teacher AStudent B1

How can i resolve this on Student A?

Regards.

9 Replies
tresesco
MVP
MVP

Without knowing your app, it would be wild guess. Try to share your sample app.

sushil353
Master II
Master II

Hi,

Say you are calculating some expression Sum(Value)

then try like this = sum({<Teachers=, students=>}Value)

HTH

sushil

richard_chilvers
Specialist
Specialist

Its hard to say without seeing your model. My suggestion is to look carefully at how your data has been constructed in the script. This may lead to unexpected results when you make selections (depending on the field you're selecting).

Regards

Anonymous
Not applicable
Author

you can use 2 solution

refer to super set if you dont at all want any selection to change this chart numbers 

you can add set analysis to your aggregate function

=count( {1} visitid)

and if you want just want particular field selection should not change the chart numbers then

you can use as follows

=count( {<Field1=,Field2=>} visitid)

Not applicable
Author

Hi Bhagirath,

Here is my code it dosen't seem to work:

=sum(aggr(count(DISTINCT SalesDate),CustomerCode))

Regards.

Anonymous
Not applicable
Author

=sum(aggr(count({1}DISTINCT SalesDate),CustomerCode))

you can refer to the community link below for more details on Aggr functuion

Aggr() function

regards,

Bhagirath

awhitfield
Partner - Champion
Partner - Champion

What exactly do you mean by 'before selection' and 'after selection? What are you selecting?

Andy

Not applicable
Author

Hi Andrew,

when trying to select on a Teacher.

the value on my Visits Changes as shown.

awhitfield
Partner - Champion
Partner - Champion

Can you post your app please?

Andy