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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression for dynamic label

I have a field in my dates table called WeekNo, which is used as the basis for summing my data.  Also in my dates table I have a field called Rpt Wk.  Within this dates table, WeekNo = 260 corresponds to Rpt Wk = Sep Wk 5.  How am I able to write a dynamic label expression that uses the max WeekNo but returns the Rpt Wk field value?  Thank you in advance.

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Brian,

=MaxString({<WeekNo = {$(=Max(WeekNo))}>}[Rpt Wk])

Regards!

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

May be this:

FirstSortedValue([Rpt Wk], -WeekNo)

Anonymous
Not applicable
Author

Hi Brian,

=MaxString({<WeekNo = {$(=Max(WeekNo))}>}[Rpt Wk])

Regards!

Not applicable
Author

Was able to get this to work, thank you!