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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
deepakk
Partner - Specialist III
Partner - Specialist III

Is it possible to Analyze unstructured excel data in Qlikview ?

HI All,

Please find the sample data in the attachment. Will it be possible to analyze Country wise data in the given scenario?

Deepak

1 Solution

Accepted Solutions
prieper
Master II
Master II

Give it a try with a script like

// ==== Load all the data, add one column for country-data ====================
RawData:
LOAD
IF(WILDMATCH(@1, '*COUNTRY :*'), @1, PEEK(xCountry)) AS xCountry,
@1,
@2,
@3
FROM
[.\CountryData.xls]
(biff, no labels, table is Sheet1$);

// ==== Delete headerinfo, cleanse country-data ==============================
Data:
LOAD
TRIM(MID(xCountry, 10, 100)) AS Country,
@1 AS Product,
@2 AS Qty,
@3 AS Amount
RESIDENT
RawData
WHERE
NOT WILDMATCH(@1, '*COUNTRY :*', '*PRODUCT*');

DROP TABLE RawData;


HTH
Peter

View solution in original post

2 Replies
prieper
Master II
Master II

Give it a try with a script like

// ==== Load all the data, add one column for country-data ====================
RawData:
LOAD
IF(WILDMATCH(@1, '*COUNTRY :*'), @1, PEEK(xCountry)) AS xCountry,
@1,
@2,
@3
FROM
[.\CountryData.xls]
(biff, no labels, table is Sheet1$);

// ==== Delete headerinfo, cleanse country-data ==============================
Data:
LOAD
TRIM(MID(xCountry, 10, 100)) AS Country,
@1 AS Product,
@2 AS Qty,
@3 AS Amount
RESIDENT
RawData
WHERE
NOT WILDMATCH(@1, '*COUNTRY :*', '*PRODUCT*');

DROP TABLE RawData;


HTH
Peter

deepakk
Partner - Specialist III
Partner - Specialist III
Author

Thanks ... It worked fine. But I need to apply it in Live scenario which is more complicated.

Important part is I got a start. Thanks...!!!YesBeer