Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Pivot Table

I have following pivot table in My qv document

YEAR20102011201220132014
STANDARD_DAYS_PM3537463131
ACTUAL DAYS PER MONTH326301384273286
STANDARD_DAYS_PM3336383738
ACTUAL DAYS PER MONTH111129138138146
STANDARD_DAYS_PM2438394041
ACTUAL DAYS PER MONTH1525262627
STANDARD_DAYS_PM1732333435
ACTUAL DAYS PER MONTH1531323335
STANDARD_DAYS_PM2731323334

I want to adjsut width of YEAR columns to be exactly like above and fisrt coloum with to be wider. But if I adjsut the width first column width of all other columns too expand. Is there any possibility of expanding the with of 1st coloumn only. The fist colum is an expression add year columums is a dimension

14 Replies
upaliwije
Creator II
Creator II
Author

Hi Thanks

Yu can use BCOD as a Dimension

MarcoWedel

There is no BCOD field in your sample application ...

QlikCommunity_Thread_245372_Pic1.JPG

hope this helps

regards

Marco

upaliwije
Creator II
Creator II
Author

It is there

petter
Partner - Champion III
Partner - Champion III

I would be practical about it and use abbreviations with some legend explaining the abbreviations next to it:

2017-01-08 11_05_28-QlikView x64 - [C__Users_psd_Downloads_TEST4.qvw_].png

In my opinion this is much more readable too ...

petter
Partner - Champion III
Partner - Champion III

In addition to the "practical" straight-forward approach I mentioned over there is a way of achieving exactly what you want.

The downside is that it is much more complicated and you will have to have a calculated dimension and a single expression with a Pick() function. In addition you will have to use a ValueList()-function to generate values for the calculated dimension.

1) Add a variable in the "Variable Overview" like this:

2017-01-08 13_03_16-Variable Overview.png

2) Add a Calculated Dimension amongst your dimensions like this:

2017-01-08 13_04_05-Edit Expression.png

3) Then finally have this single expression:

2017-01-08 13_02_37-Edit Expression.png

This will pick the right expression according to which dimension value that appears on each row.

Now you can size the calculated dimension column width independently from you expression.

I have attached your QVW with the updates to show have the final result will be and works in with your test data.