Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
paolojolly
Creator
Creator

Diplay max and min date in pivot when dimensions change

Hi, I have a table like this

CUSTOMERDOC NRSC1SC2DATE
CUSTOMER12010%8%20/05/2013
CUSTOMER11910%8%19/05/2013
CUSTOMER11810%8%18/05/2013
CUSTOMER11715%11%16/05/2013
CUSTOMER11615%11%15/05/2013
CUSTOMER11515%11%14/05/2013
CUSTOMER11414%5%13/05/2013
CUSTOMER11314%5%12/05/2013
CUSTOMER11214%5%11/05/2013
CUSTOMER11114%5%10/05/2013
CUSTOMER11014%5%09/05/2013
CUSTOMER1910%8%07/05/2013
CUSTOMER1810%8%06/05/2013
CUSTOMER1722%8%05/05/2013

in which for every client I have the reference to the document issued by the relevant discounts and I need to create a pivot table like the following

CUSTOMERSC1SC2DATE STARTDATE END
CUSTOMER110%8%18/05/201320/05/2013
CUSTOMER11715%14/05/201316/05/2013
CUSTOMER110%8%06/05/201307/05/2013

but with a normal pivot I get the following result

CUSTOMERSC1SC2DATE STARTDATE END
CUSTOMER110%8%18/05/201307/05/2013
CUSTOMER11715%14/05/201316/05/2013

can someone help me?

thanks

4 Replies
sushil353
Master II
Master II

Hi,

Please find the attached app.

HTH

sushil

paolojolly
Creator
Creator
Author

thanks, but I do not get what I need.

I need to have a pivot like this

RESULT.bmp

in which I have two records for discounts sc1 sc2 highlighted

Gysbert_Wassenaar

See attached qvw.


talk is cheap, supply exceeds demand
paolojolly
Creator
Creator
Author

thanks, this solution helps me. But can we have the same result by working only on the pivot table (not at the script level)? Thank you very much