Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to upload one string

Hello, guys, I am bery new to Qlik and i need to make a task: upload xls file into QlikView but the file contains a filed which indentifies if string values are target or not.

EXAMPLE

productstatusamountrevenuedate
product1target10100005/01/2016
product1actual770007/01/2016
product1actual330007/01/2016

 

In total i need to get a table like this

productamount targetrevenue targetamount actualrevenue actualdate targetdate actual
product110100010100005/01/201607/01/2016


Data's given like in the very 1st table. How to make one string out of all those 3

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hello Roman,

Have a look at the attached file.

Capture.PNG

View solution in original post

6 Replies
Miguel_Angel_Baeyens

Welcome to QlikView and the Community Roman,

In the script editor (Ctrl + E) do something as follows, replacing my dummy names by your own:

Table:

LOAD product,

     status,

     amount,

     revenue,

     date

FROM

(biff, embedded labels, table is Sheet1$)

WHERE status = 'target';

Then click save and then reload.

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

amount target => Sum({<status = {'target'}>} amount)

amount actual=> Sum({<status = {'actual'}>} amount)

repeat for all measure

Aurélien

Help users find answers! Don't forget to mark a solution that worked for you!
Not applicable
Author

thank you Miguel but i gues if i use that part of the script ill get target strings only without any actual ones

Not applicable
Author

Aurelien, is it about measure contructure? i need it to be in script

tamilarasu
Champion
Champion

Hello Roman,

Have a look at the attached file.

Capture.PNG

Not applicable
Author

thank you)