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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Excel sheet Update

I want to load data from a excel sheet but it is not in the correct format as shown below. Data relating to members are recorded in two rwos eg Addresss whereas I want them in one row.

CID Member Name Registered date Type Nature Address

000001 Mr. W.M.A. Wijekoon      27/07/2007 001 Personal/Individual Pothuhera.             

                                                                                                             "Jayasiri"             

000002 Mr. J.M.P.B. Jayasundara 27/07/2007 001 Personal/Individual Ahugoda                

                                                                                                                  Priyanthi              

000003 Mr. A.M. Mithrathna      27/07/2007 001 Personal/Individual Ahugoda                

                                                                                                               Hithgahalanda          

000004 Mr. A.A. Piyadasa        27/07/2007 001 Personal/Individual Ahugoda                

                                                                                                  Thimbiriyangaya        

000005 Mr. A.M. Heenbanda      27/07/2007 001 Personal/Individual Ahugoda                

Can you pls tell me way to insert a column and include 2nd part of address in the same when data is loaded to the QV doc.

8 Replies
olivierrobin
Specialist III
Specialist III

hello

maybe using previous() in the load and testing if CID (for example) is null to populate a field with the value of the 2nd row

i mean

load

if(isnull(CID),previous(CID),CID) as CID,

Member Name,

Registered date,

Type,

Nature,

if(isnull(CID),"",Address)  as Address,

if(isnull(CID),Address,'')  as Address2

so you have 2 rows per person

and in a 2nd load you group those 2 parts

upaliwije
Creator II
Creator II
Author

Thanks,

I get the following msg when I load data

Capture.PNG

tamilarasu
Champion
Champion

Could you attach sample file?

upaliwije
Creator II
Creator II
Author

Can you please write the script for the grouping part

upaliwije
Creator II
Creator II
Author

Kindly look into the attachment and advise me

tamilarasu
Champion
Champion

There is nothing in the attached file. Could you attach your excel file (MEMBER LIST.xlsx).

upaliwije
Creator II
Creator II
Author

Sorry. Pls see the attachment

tamilarasu
Champion
Champion

Hi,

Sorry for the delay. I had a meeting. Have a look at the attached file.Capture.PNG