Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get field instead of field name

Hello,

I dynamically calculate the Static max value that needs to be displayed on the Y-axis. For this I use the following formula in which I compare a defined Upper limit and the max of Y-axis expr

rangemax($(ServeLineChartYExprULimit),max(aggr($(ServeLineChartYExpr),dd_row_date)))

where dd_row_date is the first dimension in a DateCyclic(Date,Week,Month).

Obviously when I change the DateCyclic to month it automatically doesn't change the above expr.

My question is:

Is there any other solution then writing 3(for D,W,M) if condition using the GetCurrentField("DateCyclic") .In another words is there anything that would return the field instead of the fieldname so I can directly write an expression as

rangemax($(ServeLineChartYExprULimit),max(aggr($(ServeLineChartYExpr),GetCurrentField("DateCyclic"))))



1 Solution

Accepted Solutions
biester
Specialist
Specialist

Don't know whether I'm getting you right, but try to use

$(= GetCurrentField("DateCyclic"))

instead of

GetCurrentField("DateCyclic")

in your last mentioned expression.

Rgds,
Joachim

View solution in original post

2 Replies
biester
Specialist
Specialist

Don't know whether I'm getting you right, but try to use

$(= GetCurrentField("DateCyclic"))

instead of

GetCurrentField("DateCyclic")

in your last mentioned expression.

Rgds,
Joachim

Not applicable
Author

It worked!!!

Thanks so much

Aparna