<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Pivot Table Sort - QV Version 9 Upgrade in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sort-QV-Version-9-Upgrade/m-p/186745#M50715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am in the midst of upgrading from version 8.2 to version 9 and have hit an anomaly....&lt;/P&gt;&lt;P&gt;I have a pivot table with 7 dimensions.&lt;/P&gt;&lt;P&gt;sin_ProductFamily (Vertical)&lt;/P&gt;&lt;P&gt;pro_Dimension01 (Vertical - starts off collapsed)&lt;/P&gt;&lt;P&gt;pro_Dimension02 (Vertical - starts off collapsed)&lt;/P&gt;&lt;P&gt;pro_Code (Vertical - starts off collapsed)&lt;/P&gt;&lt;P&gt;sin_AnalysisPeriod (Horizontal)&lt;/P&gt;&lt;P&gt;=Date(monthStart(cam_Month), 'MMM-YY') AS Month (Horizontal)&lt;/P&gt;&lt;P&gt;=IF(cam_HistoricalMonthNumber=0, varCurrentMonth_WDSF, cam_FinMonthWorkDays) AS WorkDays (Horizontal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our user wants to be able to "Toggle" sort the sin_AnalysisPeriod field...&lt;/P&gt;&lt;P&gt;To do this, I have put a "Period Sort" button on the screen which runs the following Macro (which calls a function)...&lt;/P&gt;&lt;P&gt;sub SortOrderCH900&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Set chart = ActiveDocument.GetSheetObject("CH900")&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;varDim = 4&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Call PeriodSort(chart, varDim)&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;Function PeriodSort(chart, varDim)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;set Prop=chart.GetProperties&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;set Dims=Prop.Dimensions(varDim)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;If Dims.SortCriteria.SortByNumeric = 1 Then&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Dims.SortCriteria.SortByNumeric = -1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Else&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Dims.SortCriteria.SortByNumeric = 1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;End If&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;This works fine on version 8.2 (developer environment and user environment using ie)&lt;/P&gt;&lt;P&gt;On version 9 it work okay in the developer environment but we not in the user environment.&lt;/P&gt;&lt;P&gt;What it is doing (and the attached spreadsheet illustrates this) is dropping the dimensions immediately after the dimension we are sorting on from the pivot table.&lt;/P&gt;&lt;P&gt;Anyone any ideas on how I stop this from happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Mar 2010 10:18:29 GMT</pubDate>
    <dc:creator>pkelly</dc:creator>
    <dc:date>2010-03-19T10:18:29Z</dc:date>
    <item>
      <title>Pivot Table Sort - QV Version 9 Upgrade</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sort-QV-Version-9-Upgrade/m-p/186745#M50715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am in the midst of upgrading from version 8.2 to version 9 and have hit an anomaly....&lt;/P&gt;&lt;P&gt;I have a pivot table with 7 dimensions.&lt;/P&gt;&lt;P&gt;sin_ProductFamily (Vertical)&lt;/P&gt;&lt;P&gt;pro_Dimension01 (Vertical - starts off collapsed)&lt;/P&gt;&lt;P&gt;pro_Dimension02 (Vertical - starts off collapsed)&lt;/P&gt;&lt;P&gt;pro_Code (Vertical - starts off collapsed)&lt;/P&gt;&lt;P&gt;sin_AnalysisPeriod (Horizontal)&lt;/P&gt;&lt;P&gt;=Date(monthStart(cam_Month), 'MMM-YY') AS Month (Horizontal)&lt;/P&gt;&lt;P&gt;=IF(cam_HistoricalMonthNumber=0, varCurrentMonth_WDSF, cam_FinMonthWorkDays) AS WorkDays (Horizontal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our user wants to be able to "Toggle" sort the sin_AnalysisPeriod field...&lt;/P&gt;&lt;P&gt;To do this, I have put a "Period Sort" button on the screen which runs the following Macro (which calls a function)...&lt;/P&gt;&lt;P&gt;sub SortOrderCH900&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Set chart = ActiveDocument.GetSheetObject("CH900")&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;varDim = 4&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Call PeriodSort(chart, varDim)&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;Function PeriodSort(chart, varDim)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;set Prop=chart.GetProperties&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;set Dims=Prop.Dimensions(varDim)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;If Dims.SortCriteria.SortByNumeric = 1 Then&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Dims.SortCriteria.SortByNumeric = -1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Else&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Dims.SortCriteria.SortByNumeric = 1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;End If&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;This works fine on version 8.2 (developer environment and user environment using ie)&lt;/P&gt;&lt;P&gt;On version 9 it work okay in the developer environment but we not in the user environment.&lt;/P&gt;&lt;P&gt;What it is doing (and the attached spreadsheet illustrates this) is dropping the dimensions immediately after the dimension we are sorting on from the pivot table.&lt;/P&gt;&lt;P&gt;Anyone any ideas on how I stop this from happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 10:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sort-QV-Version-9-Upgrade/m-p/186745#M50715</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-03-19T10:18:29Z</dc:date>
    </item>
    <item>
      <title>Pivot Table Sort - QV Version 9 Upgrade</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sort-QV-Version-9-Upgrade/m-p/186746#M50716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some additional detail....&lt;/P&gt;&lt;P&gt;The dimensions which I though where being removed are actually being collapsed by Version 9.0.&lt;/P&gt;&lt;P&gt;Version 8.2 does not do this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 10:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sort-QV-Version-9-Upgrade/m-p/186746#M50716</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-03-19T10:46:23Z</dc:date>
    </item>
    <item>
      <title>Pivot Table Sort - QV Version 9 Upgrade</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sort-QV-Version-9-Upgrade/m-p/186747#M50717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help on this?&lt;/P&gt;&lt;P&gt;Is there a way that I can expand the dimension which is being collapsed as part of the macro sort...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 19:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sort-QV-Version-9-Upgrade/m-p/186747#M50717</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-03-19T19:06:49Z</dc:date>
    </item>
    <item>
      <title>Pivot Table Sort - QV Version 9 Upgrade</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sort-QV-Version-9-Upgrade/m-p/186748#M50718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 19:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sort-QV-Version-9-Upgrade/m-p/186748#M50718</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-03-22T19:37:14Z</dc:date>
    </item>
    <item>
      <title>Pivot Table Sort - QV Version 9 Upgrade</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sort-QV-Version-9-Upgrade/m-p/186749#M50719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have just found the issue......&lt;/P&gt;&lt;P&gt;As I said in my post, we have just upgraded to version 9.&lt;/P&gt;&lt;P&gt;What we didn't do was install the latest version of the IE plug in on our terminal servers.&lt;/P&gt;&lt;P&gt;We have just done this and it has solved our problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 14:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sort-QV-Version-9-Upgrade/m-p/186749#M50719</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-03-26T14:59:07Z</dc:date>
    </item>
  </channel>
</rss>

