Skip to main content
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 II
Creator II

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

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 II
Creator II

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 II
Creator II

Great!,

what kind of object is this?

shamitshah
Partner - Creator
Partner - Creator
Author

Just a simple KPI Chart object.