Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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.

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

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!