Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
antonybi
Creator
Creator

rawdata

Hi All,

am trying to extract raw data into qlikview.

which is in the below format.

rawdata.PNG

But my desired output should be as below

output.PNG

Please help!!!

1 Solution

Accepted Solutions
its_anandrjs

Find the attached

Data:

LOAD id,

    name,

    pickup,Upper(Right(pickup,3)) as LANDMARK

FROM

file1.xlsx

(ooxml, embedded labels, table is Rawdata) Where Len(name) <> 0;

Left Join(Data)

LOAD pickup as LANDMARK

FROM

file1.xlsx

(ooxml, embedded labels, table is Rawdata) Where Len(name) = 0;

View solution in original post

3 Replies
its_anandrjs

Find the attached

Data:

LOAD id,

    name,

    pickup,Upper(Right(pickup,3)) as LANDMARK

FROM

file1.xlsx

(ooxml, embedded labels, table is Rawdata) Where Len(name) <> 0;

Left Join(Data)

LOAD pickup as LANDMARK

FROM

file1.xlsx

(ooxml, embedded labels, table is Rawdata) Where Len(name) = 0;

jonathandienst
Partner - Champion III
Partner - Champion III

Or this (not dependant on the format/parsing of the detail pickup values):

Step1:

LOAD

  id,

  name,

  pickup,

  If(Len(name) = 0, pickup, peek(Landmark)) as Landmark

FROM rawdata....;

Result:

NoConcatenate

LOAD *

Resident Step1

Where Len(name) <> 0;

DROP Table Step1;

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
its_anandrjs

And also there is another way is just use Upper(Right(pickup,3))  in single table may be this if your requirement matches

Data:

LOAD id,

    name,

    pickup,

    Upper(Right(pickup,3)) as LANDMARK

FROM

file1.xlsx

(ooxml, embedded labels, table is Rawdata) Where Len(name) <> 0;