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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
kangaroomac
Partner - Creator II
Partner - Creator II

Set Analysis in Qlik Sense

Hi There,

Anyone know why the following won't return a value in an expression in Qlik Sense?

Avg({<

  [Dimension]={'MaxString([Dimension])'}

    //[Dimension]= {'Value'}

        >}[Measure])

When I try it without the commented section ([Dimension]= {'Value'}) I get the desired result.

I've also tried without the single quotes (Dimension and result of MaxString are non-numeric) with no avail:

Avg({<

  [Dimension]={MaxString([Dimension])}

    //[Dimension]= {'Value'}

        >}[Measure])

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

=Avg({<[Dimension]={"$(=MaxString(Dimension))"}>}[Measure])

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

Try this:

=Avg({<[Dimension]={"$(=MaxString(Dimension))"}>}[Measure])

kangaroomac
Partner - Creator II
Partner - Creator II
Author

That worked, thanks sunindia.

I see I used single quotes instead of double.

sunny_talwar
MVP
MVP

No problem

I am glad I was helpful.

Best,

Sunny