Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Not applicable

Adding a column of values to an existing field

Hi.

i would like to do the following;

I am looking to combine given SLA values to the table Priority from my DB.

These SLA values are not in the database and are stored in an excel sheet.

to optimize my solution i would like to skip using the excel sheet and enter these  SLA values directly into qlikview script to form a new table or complement the table Priority by adding an extra row.

is this possible?

table Priority:

PriorityIDPriority NameSeverity
01Low 1
02Medium 2
03High3

Excel Sheet:

PriorityIDSLA Value (hours)
013
026
039

Desired Table:

PriorityIDPriority NameSLA ValueSeverity
01Low 31
02Medium62
03High93
1 Solution

Accepted Solutions
bgerchikov
Contributor III

Re: Adding a column of values to an existing field

Hi,

Try the following:

SLA:

LOAD

* INLINE [

    PriorityID, SLA Value

    01, 3
    02, 6
    03, 9
   ]
;

Left Join(Priority) Load * Resident SLA:

Drop Table SLA;

Hope it will help.

1 Reply
bgerchikov
Contributor III

Re: Adding a column of values to an existing field

Hi,

Try the following:

SLA:

LOAD

* INLINE [

    PriorityID, SLA Value

    01, 3
    02, 6
    03, 9
   ]
;

Left Join(Priority) Load * Resident SLA:

Drop Table SLA;

Hope it will help.

Community Browser