Skip to main content
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

Try this:

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

View solution in original post

3 Replies
sunny_talwar

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

No problem

I am glad I was helpful.

Best,

Sunny