Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis Issue with Calculation

I have a calculation that needs filtered using set analysis when its displayed in a table box. The calculation is created in the Load Script:

A-B = 'Days Old'

How can I setup the set analysis syntax correctly in the table box expression?

This is not working:

 

{$<[Group] = {"Int", "Stone"}>}[Days Old]

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Set analysis works only in aggregation expressions, e.g. sum(), count(), max(), etc.  In your case it is probably
avg({$<[Group] = {'Int', 'Stone'}>}[Days Old])
or
only({$<[Group] = {'Int', 'Stone'}>}[Days Old])

But this is just my guess.
And, as sunindia pointed out, you can't do it in a table box.

View solution in original post

6 Replies
sunny_talwar

table box doesn't allow for expressions. Are you talking about a straight table expression?

Best,

Sunny

ankitaag
Partner - Creator III
Partner - Creator III

Kindly write the full expression

Not applicable
Author

Yes I'm talking about a straight table

Not applicable
Author

I included the expression. Its simply the field pulled into the expression. perhaps this isn't the correct way to do this.

{$<[Group] = {"Int", "Stone"}>}[Days Old]

sunny_talwar

May be a Sum/Count/Min/Max({$<[Group] = {"Int", "Stone"}>}[Days Old])

Anonymous
Not applicable
Author

Set analysis works only in aggregation expressions, e.g. sum(), count(), max(), etc.  In your case it is probably
avg({$<[Group] = {'Int', 'Stone'}>}[Days Old])
or
only({$<[Group] = {'Int', 'Stone'}>}[Days Old])

But this is just my guess.
And, as sunindia pointed out, you can't do it in a table box.