Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

Not applicable

firstsortedvalue function

Hi all,

I have a data set that comprises 2 tables.

The first table is work orders, the second table is labour transactions. The relationship is one to many, linked by a WONUM key field.

I want to show the first labour transaction date for each work order in a straight table. Im trying to use the following function as one of the chart expressions:

=firstsortedvalue(LABTRANSDATE,LABTRANSDATE)

But it is returning null in all cases except where there is only a single corresponding labour record (i.e where there is a one to one relationship).

Can anyone suggest another way to do this?

Thanks

1 Reply
danielrozental
Honored Contributor II

firstsortedvalue function

Thing is firstsortedvalue will only return results if there is a single corresponding value for the first sorte field.

If you just want to get the date you could just use Min(LABTRANSDATE).

Community Browser