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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set analysis in text object

Hi,

I would like to add Round_Type = {Qualifier}


To this text box expression:


=round(sum(Score)/Count(Round_Id))& ' Team Average Overall'

1 Solution

Accepted Solutions
prma7799
Master III
Master III

= Round(sum({$<Round_Type = {'Qualifier'}>}Score)

/

Count({$<Round_Type = {'Qualifier'}>}Round_Id))  & ' Team Average Overall'

View solution in original post

7 Replies
Anonymous
Not applicable
Author

So, if Round_Type = 'Qualifier'


round(sum(Score)/Count(Round_Id


Essentially the average score when round is qualifier - in a text object.

Qrishna
Master
Master

=round(sum({$<Round_Type = {Qualifier}>}Score)/Count({$<Round_Type = {Qualifier}>}Round_Id)) & ' Team Average Overall'

Anonymous
Not applicable
Author

No, the average is still overall, still the result of:

=round(sum(Score)/Count(Round_Id))

shilpan
Partner Ambassador
Partner Ambassador

=round(sum({$<Round_Type = {'Qualifier'}>}Score)/Count({$<Round_Type = {'Qualifier'}>}Round_Id)) & ' Team Average Overall'

Anonymous
Not applicable
Author

I think that is exactly the same as Krishna's reply, and the output is the same as well - still the overall average without the Round_Type qualification of 'Qualifier'

prma7799
Master III
Master III

= Round(sum({$<Round_Type = {'Qualifier'}>}Score)

/

Count({$<Round_Type = {'Qualifier'}>}Round_Id))  & ' Team Average Overall'

Anonymous
Not applicable
Author

Bingo!  Thank you very much.  Interesting I think I went down this road and got tripped up by the fact the syntax was not being highlighted correctly as the expression was being written.  I should have known to just keep plowing on - despite the fact QV does not always highlight as one might expect, it often winds up with "Expression OK" when finished...