Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

amit_saini
Honored Contributor III

Pivot table Layout help???

Hi Folks,

Below is my Pivot table :

Result when no specific "Plant" is selected from list

Now if I select any Plant from list say "KBC" , I'm having below results:

Here above "KBC" shifted right after Dimension after selection from Plant list

Desired Layout should be like below : The position of columns should not change based on any selection

Please help hoe this can be done!

Thanks,
AS

1 Solution

Accepted Solutions
MVP
MVP

Re: Pivot table Layout help???

Try out these changes:

Expression1:

=Sum({$ <

        Period_Type={'R12'}

        ,Year_EHS=, Quarter=,Month_EHS=, Year_Qtr=, Year_EHS=, Date_EHS=, Plant_Short_Name=

        ,AsOf_Year_Month={"$(=Date(Max({$<Plant_Short_Name=>} AsOf_Year_Month),'YYYY-MM'))"}

//        ,AsOf_DateValue={">=$(=MonthStart(AddMonths(Max({$<Plant_Short_Name=>} AsOf_DateValue),-11)))<=$(=Max({$<Plant_Short_Name=>} AsOf_DateValue))"}

//        ,active_site={1,2}

        ,%row_type_code={4}

        ,$(vDailyLogDims) -> Not sure what this variable contains

        ,$(vIssueTrackingDimensions) -> Not sure what this variable contains

        >}

    TRI * $(vInjRateFactor)) -> Not sure what this variable contains

/

Sum({$ <

        Period_Type={'R12'}

        ,Year_EHS=, Quarter=,Month_EHS=, Year_Qtr=, Year_EHS=, Date_EHS=, Plant_Short_Name=

        ,AsOf_Year_Month={"$(=Date(Max({$<Plant_Short_Name=>} AsOf_Year_Month),'YYYY-MM'))"}

//        ,AsOf_DateValue={">=$(=MonthStart(AddMonths(Max({$<Plant_Short_Name=>} AsOf_DateValue),-11)))<=$(=Max({$<Plant_Short_Name=>} AsOf_DateValue))"}

//        ,active_site={1,2}

        ,%row_type_code={4}

        ,$(vDailyLogDims)-> Not sure what this variable contains

        ,$(vIssueTrackingDimensions)-> Not sure what this variable contains

        >}

    Manhours)

Expression2:

if(sum({$<Plant_Short_Name=>}[Act Planned Production Hours]) = 0, avg({$<Plant_Short_Name=>}[Act OEE]),

sum({$<Plant_Short_Name=>}[Act OEE]*[Act Planned Production Hours])/sum([Act Planned Production Hours]))

Expression 3:

=If( if(Only({$<Plant_Short_Name=>}Year)=2013,avg({$<Plant_Short_Name=>}[Act. Tanks Scrapped as % of Tanks Produced]),(Sum({$<Plant_Short_Name=>}[Act. Tanks Scrapped (Total Line)])/sum({$<Plant_Short_Name=>}[Act BMM Shells Produced])))<>0,

    if(Only({$<Plant_Short_Name=>}Year)=2013,avg([Act. Tanks Scrapped as % of Tanks Produced]),(Sum({$<Plant_Short_Name=>}[Act. Tanks Scrapped (Total Line)])/sum({$<Plant_Short_Name=>}[Act BMM Shells Produced]))),

    null()

)

3) Sorting Expression

Dual(Plant_Short_Name,Match(Only({1}Plant_Short_Name),'KB2','KBC','KBK','KBL','KIS','KBO','KBR','KDU','KHE','KIS','KKS','KOF','KRO','KUK','KUL','KWK','KDT','CWC','KLA','KMX','KOC','KSI','KTX','KUS','KCC','KCQ','KSH','KGZ','KJP','KZC'))

13 Replies
hrlinder
Honored Contributor

Re: Pivot table Layout help???

use set Analysis something like

sum({<Plant_Short_...=>}yourvalue)

you need to insert your fullname of the Dimension "Plant_Short_)

means, Show value regardless of selection of Plant_short_..

MVP
MVP

Re: Pivot table Layout help???

The other plants are still available they just move to the back of selected plant? Are you using a sorting expression? May be you have to ignore selection in your sorting expression using {1}

amit_saini
Honored Contributor III

Re: Pivot table Layout help???

Hi,

Sum({<Plant_Short_Name=>}Value)

I have already tried this option , but no success.

Thanks,

AS

galax_allu
Valued Contributor

Re: Pivot table Layout help???

Hi

If you want your PVIOT TABLE not changed irrespective any selections .

Please try this in the  Properties ...>General...>(select)Detached

amit_saini
Honored Contributor III

Re: Pivot table Layout help???

Hi Sunny,

Only selected Plant is available on selection , can't see other Plants.

Yes I'm doing below sorting on Plant orders based on Customer requirement:

Dual(Plant_Short_Name,Match(Plant_Short_Name,'KB2','KBC','KBK','KBL','KIS','KBO','KBR','KDU','KHE','KIS','KKS','KOF','KRO','KUK','KUL','KWK','KDT','CWC','KLA','KMX','KOC',

'KSI','KTX','KUS','KCC','KCQ','KSH','KGZ','KJP','KZC'))

Thanks,

AS

amit_saini
Honored Contributor III

Re: Pivot table Layout help???

Hi,

I want selection to be performed in table , by doing Detached they will not work.

Thanks,

AS

MVP
MVP

Re: Pivot table Layout help???

Can you try this:

Match(Only({1}Plant_Short_Name),'KB2','KBC','KBK','KBL','KIS','KBO','KBR','KDU','KHE','KIS','KKS','KOF','KRO','KUK','KUL','KWK','KDT','CWC','KLA','KMX','KOC','KSI','KTX','KUS','KCC','KCQ','KSH','KGZ','KJP','KZC'))

MVP
MVP

Re: Pivot table Layout help???

And may be with this expression (just for testing)

Sum({1}Value)

amit_saini
Honored Contributor III

Re: Pivot table Layout help???

Sorry not working

Thanks,

AS