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

1 Solution

Accepted Solutions
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.

View solution in original post

14 Replies
Anil_Babu_Samineni

2 Options

1) Drag like where ever you want

2) You must get one symbol when you mouse over in B/W of two fields or measures like + Symbol, Then you may hit double stick for that

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
upaliwije
Creator II
Creator II
Author

It is not clear to me can pls elaborate a little bit

Anil_Babu_Samineni

Can you confirm the same whether you are expecting Auto Width for each Field / What?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
upaliwije
Creator II
Creator II
Author

I want 1st Coloum where legnth of the text large to have wider length and Value columns to be shorter.

Anil_Babu_Samineni

Where you are doing this. If straight or Pivot object then just place your mouse in between of Fields or expressions. So then, The mouse showing like + Symbol. Then double click the beside of the line and then it will stretched as per you are looking. I am not the good ex-plainer

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
el_aprendiz111
Specialist
Specialist

Hi Upali:

try this macro

sub AutoFit


set chart = ActiveDocument.GetSheetObject("CH08")
chart.
SetPixWidth 0,100
chart.
SetPixWidth 1,100
chart.
SetPixWidth 2,100

end sub

MarcoWedel

Hi,

I guess the behaviour you described should only occur for columns belonging to one horizontal dimension.

As the "YEAR" column (lable) itself should not be part of the value columns, your issue seems odd.

I'm not sure about your data model and pivot table structure.

Can you please post an example to demonstrate this behaviour?

thanks

regards

Marco

upaliwije
Creator II
Creator II
Author

i HAVE ATTACHED MY QV dOC . PSL ADVISE

HirisH_V7
Master
Master

Hi,

Please reload your QVW, there no dimensions are active.

Else

Make a QVW with sample data.

-Hirish

HirisH