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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
shamitshah
Partner - Creator
Partner - Creator

Label

Hi,

I have the following expression and I want to the label it as Orders with the  Max Date

Expression:

count(Distinct{<PickDate={"$(=Max(PickDate))"},LIT_Status={'4'}>}PurchaseOrder)

The Max(PickDate) would be the latest date e.g. 11 June 2016, hence the label should appear as "Orders 11 June 2016"

Any ideas?

Thanks

Shamit

1 Solution

Accepted Solutions
idogridish2
Creator III
Creator III

hi shamitshah

you can use ValueList(vMaxdate) as dimension with a variable in it

that will hold the max date like:

vMaxdate = max(pickdate).

and in the exprission:

if(ValueList(vMaxdate) = vMaxdate,count(Distinct{<PickDate={"$(=Max(PickDate))"},LIT_Status={'4'}>}PurchaseOrder))

regards

View solution in original post

6 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Afaik it's not possible yet to use expressions as labels in Qlik Sense.


talk is cheap, supply exceeds demand
shamitshah
Partner - Creator
Partner - Creator
Author

Thanks for the info.

Shamit

idogridish2
Creator III
Creator III

hi shamitshah

you can use ValueList(vMaxdate) as dimension with a variable in it

that will hold the max date like:

vMaxdate = max(pickdate).

and in the exprission:

if(ValueList(vMaxdate) = vMaxdate,count(Distinct{<PickDate={"$(=Max(PickDate))"},LIT_Status={'4'}>}PurchaseOrder))

regards

shamitshah
Partner - Creator
Partner - Creator
Author

Thanks Ido,

Works perfectly.

Regards

Shamit

idogridish2
Creator III
Creator III

Great!,

what kind of object is this?

shamitshah
Partner - Creator
Partner - Creator
Author

Just a simple KPI Chart object.