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: 
Not applicable

Using expression in set expression

Hi all,

I haven't done lot of set analysis recently and I just got a problem.

I trying to get the average of a value on the first date of my set analysis.

I am using the following expression :

= avg( {$<date = {$(=Min(date))}>} value )

But I got an empty result.

Can any of you see what I am doing wrong ?

Thanks in advance.

1 Solution

Accepted Solutions
Not applicable
Author

Hi again,

I knew it was easy I was just going a bit nuts on the $ sign syntax.

So the answer to this :

avg({$<date={"$(=min(date))"}>} value)

If anyone ever have the same problem remember that the official documentation is confusing. I found the correct syntax here .

View solution in original post

2 Replies
Not applicable
Author

Hi again,

I knew it was easy I was just going a bit nuts on the $ sign syntax.

So the answer to this :

avg({$<date={"$(=min(date))"}>} value)

If anyone ever have the same problem remember that the official documentation is confusing. I found the correct syntax here .

sunny_talwar
MVP
MVP

Can you try this:

=Avg({$<date = {"$(=Min(date))"}>} value)


or


=Avg({$<date = {"$(=Date(Min(date), 'DateFieldFormatHere'))"}>} value)