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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
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
Champion III
Champion III

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
Champion III
Champion III

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
Champion III
Champion III

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;