Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Pivot Column Width to Zero

Hi Friends,

In Forums, they mentioned we can adjust column width to zero in pivot charts so that it is invisible. But I am not finding anything at presentation tab.

Could somebody post the screen shot to adjust the width to zero...

Thanks

Pavna

Tags (1)
5 Replies
mov
Esteemed Contributor III

Re: Pivot Column Width to Zero

I use the next macro to "hide" columns in pivot:

sub Squeeze
call HideColumn("CH01", 2)
end sub
'
private sub HideColumn(ch, n)
set ch = ActiveDocument.GetSheetObject(ch)
ch.SetPixWidth (n-1), 0
end sub

Not applicable

Re: Pivot Column Width to Zero

I believe there is no setting to set the column width to zero. Please use macro suggested above.

Not applicable

Re: Pivot Column Width to Zero

There is no feasibility to hide columns through settings. use macros if you need.

Not applicable

Re: Pivot Column Width to Zero

Hi Michael,

Thanks,

My requirement is I am trying to sort the last expression in pivot chat irrespective of selected 11 dimensions.

For that I am creating a additional first column with the last expression and using it in sort tab using expression

=Pick(Dimensionality(),sum(x),sum(x),sum(x).........................................))

Can I write use this macro to hide the first column in every pivot chart in dashboard??

It will be great if you can explain how this macro work as I am new to macros...

sub Squeeze

call HideColumn("CH01", 2)

end sub

'

private sub HideColumn(ch, n)

set ch = ActiveDocument.GetSheetObject(ch)

ch.SetPixWidth (n-1), 0

end sub


Thanks

Pavan

mov
Esteemed Contributor III

Re: Pivot Column Width to Zero

Pavan,

I don't see the need for this additional column (is it a calculated dimension) to do the sorting.  If you want to sort pivot table by an expression, simply go to the Sort tab, select first dimension, check "sort by expression", and copy your expression here.

If I didn't understand what you want - please upload your application.

Regards,

Michael

Community Browser