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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlik: Avoiding average in expression

Hi,

Whenever I have expressions in Charts, tables etc Qlik shows averages. When I include the date dimension in the Chart, the trend values look okay. I have some representations that need the expression value only for the max date.

The field having the date value is DATE and whenever I use an expression:

Sum({$ <DATE={MAX(DATE)} Metric)

I get a null on the chart. Please help.

1 Solution

Accepted Solutions
Not applicable
Author

Thanks Raphael and Nicole but that did not help

Sum({$<DATE={'$(=date(MAX(DATE)))'}>} Metric)


I assume the part in bold (on Nicole's post) was missing and that did the trick

View solution in original post

3 Replies
rphpacheco
Creator III
Creator III

Try:

Sum({$ <DATE={'$(=MAX(DATE))'} Metric)

Nicole-Smith

Sum({$<DATE={'$(=date(MAX(DATE)))'} Metric)

Not applicable
Author

Thanks Raphael and Nicole but that did not help

Sum({$<DATE={'$(=date(MAX(DATE)))'}>} Metric)


I assume the part in bold (on Nicole's post) was missing and that did the trick