Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlikview Expression

Can anybody tell me how to create or store temporarily a value for each record to be later used in an expression in Qlikview ? Also want to know how to add a column through expression in Qlikview?

12 Replies
ahaahaaha
Partner - Master
Partner - Master

Hi,

1) "to create or store temporarily a value for each record" - all depends on the tasks being solved, but in any case it will be either a table or a variable

2) "how to add a column through expression" -


LOAD

....,

Expression or Value your new Field as [Name New Field]

FROM....


Regards,

Andrey

micheledenardi
Specialist II
Specialist II

Hi Akash,

to store a value for each record you have to work in load statement:

For example if you want to create a new field "Value":

Invoice:

Load

    Number,

    Qty,

    Price,

    Qty*price    as Value

from Invoice.qvd (qvd);

What do you mean "add column through expression" ?

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
Anonymous
Not applicable
Author

Hi

You mean Creating Variables?

vardhancse
Specialist III
Specialist III

Ley vVariableName = expression;

Not applicable
Author

The question is how to create or store temporarily a value for each record to be later used in an expression in qlikview I need this not in the loading script but during calculation?

ger_alegria
Partner - Creator
Partner - Creator

To create a new column through expresion try whit:

Load

     A,

     B,

     Expresion as New_Field

From....

i.e:

Load

     A,

     B,

     A+B as MyField

From....

tajmohamed30
Creator III
Creator III

Hi Reddy,

You can use variables to store your expression and can be used at any object in qlikview.

For adding column in pivot or straight table you can go to the expression tab in the properties option by right cliking the chart..

Also find useful informations for newbie.

http://community.qlik.com/thread/31007

http://community.qlik.com/docs/DOC-1794

http://community.qlik.com/qlikviews/1000

http://community.qlik.com/docs/DOC-1986

Hope it helps, you can mark answered if you like this information

Regards

Taj Mohamed

Anonymous
Not applicable
Author

Based on your explanation........

If you're creating a Straight Table chart, you could have an expression/column with value you want to temporarily store.

Then in another expression, you can refer to that first expression by column name.

If you don't want the column with the temporarily stored value to be seen you can just hide it on the Presentation tab.

tajmohamed30
Creator III
Creator III

In simple terms let us assume, variables=memory card(in mobiles)

                 functions(expressions/calculations)=songs, videos etc

Now you can use use memory card to store songs or videos and that stored memory card can be used at any devices.

Similarly you can use Variables to store functions and can be used anywhere in any charts.

Regards

Taj Mohamed