Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

utilisation of firstsortedvalue

Hello,

I'm new to qlikview and i'm having trouble using firstsortedvalue.

This is what i'm working on:

CUSTOMERPRODUCTBUYING DATE
CUSTOMER 1PRODUCT 122/11/2009
CUSTOMER 1PRODUCT 224/05/2012
CUSTOMER 1PRODUCT 312/02/2010
CUSTOMER 2PRODUCT 113/07/2007
CUSTOMER 3 PRODUCT 130/04/2002
CUSTOMER 3PRODUCT 201/04/2000
CUSTOMER 3PRODUCT 308/08/2008

i would like to know the product that each customer bought in the first place.

So what i would like to see is:

CUSTOMERPRODUCT
CUSTOMER 1PRODUCT 1
CUSTOMER 2PRODUCT 1
COSTOMER 3PRODUCT 2

How should i do this?

Thanks a lot!

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Create a chart with dimension CUSTOMER and as expression

=FirstSortedValue(PRODUCT, [BUYING DATE])

take care that buying date field has a numeric representation (i.e. is interpreted as date by QV).

View solution in original post

1 Reply
swuehl
MVP
MVP

Create a chart with dimension CUSTOMER and as expression

=FirstSortedValue(PRODUCT, [BUYING DATE])

take care that buying date field has a numeric representation (i.e. is interpreted as date by QV).