Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Complex expression in Pivot Table

Hi,

I've data in the form attached(ques) & need output as attached(a pivot table)

The problem is that Year has dynamic values which can increase upto 'n' Columns & More cols are needed to be added to the pivot table which are independent of Year.

I think:

1) I've to use only one expression.

2) I can't use Year Dimension

I concatenated the data from two sources,the Typeid field distinguishes the concatenation which i added in the data to identify the sources

as you can see in the ques. that values for Year are blank for  TYPEID=2 but still it has to be shown in the same chart with the Year Values(which suggests that year can't be used as dimension,unless you guys have other ideas).

Note that there is only 1 row for 2014....but it can be more,infact Year can increase....(2015 till....n depending on the data)

Pls help

Regards

13 Replies
Not applicable
Author

HELP ME

Not applicable
Author

please upload your sample application

Not applicable
Author

thanks for the reply.

Due to privacy of data it won't be possible for me to post the entire qvw file.

Could you please suggest if i can help in someother way or if you can look at the sample data & output i've posted

Thanks

Gysbert_Wassenaar

What you want is simply not possible. If you need that kind of output, create it in Excel.


talk is cheap, supply exceeds demand
Not applicable
Author

thanks a lot of ur answer.

I was waiting to hear from you.

Is it also not possible to create a a table like this, without using Year as dimenison

& without using set analysis :sum({<Year={2013}>} Amount) as we don't know how many Years

does the Table have ?

Is there anyway we can count the distinct Years in the table and use some expression which will result in adding the cols 2015, 2016...and so on...dynamically as the Year values increase in the table.

May be Genric loading the table to make it a CrossTable and using.........???

DIM1DIM2DIM320132014
-POther12067442.68-
APNP500653.23-
AQNP1087656.09-
AQOther1431878.856-
AQABO340594.7713-
ARBN151396.2464-
BSIN32361573.96-
BTBN75963108.96-
BTDE28301155.79-
BTIN96211986.26-
BTNEW42647431.91-
CUOther17808809.6-
CUABO4514178.11-
CVBN2018751.596-
CVOther14241727.22-
CVABO2375031.623-
DPBN30124452.35-
DPIN6338915.4-
DPNEW1108683.55-
DPOther1139795879298363331
DPABO2176092.9-
DWOther100525025.6-
DWABO21158271.19-
DWGRGN38646728-
EXEX50000000-

Thanks again !!!

Not applicable
Author

Hi Qlikviewed,

  Can you how many years data you have and which year data you want to show the output

Not applicable
Author

Hi Qlikviewed,

  Can you tell me how many years data you have and which year data you want to show the output

Not applicable
Author

This is the problem i'm facing. I also asked the same question to the user but they say that it is dynamic.

May be if I can convince them that the Data later than 2016 is not relevant to you then I might fix something but this is thing of future.

right now it has to be found out form the Data we have.

Any idea?

Not applicable
Author

ok by default which year data you need to show now itself.