Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

create 2 calculated fields in the cloud from this table.

hello, my name is Daniel, I have some questions about a calculated field in QlikView.

I have an .xls file that has the following information:

company year month and value

And I need to create 2 calculated fields in the cloud from this table.

Here's how the table should be on a dynamic object.

     

companyyearmonthvaluevalue2(calculated)value3(calculated)
dtt2000Jan10 =before value(Year&Month) =before value(Year&Month) - actual value
dtt2000Feb20 = 10 = 10 - 20
dtt2000Mar10 = 20 = 20 - 10
dtt2000Apr20 = 10 = 10 - 20
dtt2000May30 = 20 = 20 - 30
dtt2000Jun40 = 30 = 30 - 40
dtt2000Jul0......
dtt2000Ago10......
dtt2000Sep23......
dtt2000Oct34......
dtt2000Nov5......
dtt2000Dec12......

I will be grateful in support of this issue.

Thank you.

3 Replies
petter
Partner - Champion III
Partner - Champion III

You can create a Chart - Straight Table like this and create three expressions like you see below - I have also attached the demo QlikView Application so you can inspect the solution yourself:

2015-05-03 #2.PNG

The Above()-function is the one that serves your purpose in this case.

The last three column headers have a copy of the expressions for the columns in them. As is the default if you don't override it.

Not applicable
Author

Thank you for your answer. But in my situation, "above" should come from extraction.

In this case, if any month selection in the table object, the expression will not work.

petter
Partner - Champion III
Partner - Champion III

That can be achieved like this - also see the updated attachment with the updated load script:

2015-05-04 #1.PNG !