<?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 Re: Pivot table issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575786#M1103254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done a number of QlikView apps over survey data and I would strongly recommend that you CrossTable your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way instead of having separate columns for each of the results you will have a single 'Result' column and a row (four initially) for each of the different answers for each survey, with a QuestionID next to each value.&amp;nbsp; The record set would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SurveyDate,Campaign,QuestionID,Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then either link to a Questions table on the ID or pull the Question into the data set directly (perhaps with ApplyMap).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have done this you can use the Question Name as a dimension and calculate all of the associated values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The real beauty of this is that you can have different number of questions for each campaign and the data just flexes to accommodate the new or removed questions.&amp;nbsp; Your app can grow and grow with no changes to the data model or the presentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should find plenty of information on CrossTable and ApplyMap if you search for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 19:00:25 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2014-04-15T19:00:25Z</dc:date>
    <item>
      <title>Pivot table issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575779#M1103247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;How can I build a pivot table like below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57229_Capture.JPG.jpg" style="width: 620px; height: 201px;" /&gt;&lt;/P&gt;&lt;P&gt;It's 3 different variables and I need to add 3 columns.&lt;/P&gt;&lt;P&gt;Please find my file to understand better.&lt;/P&gt;&lt;P&gt;Maybe better use avg in Load script.&lt;/P&gt;&lt;P&gt;For selection 2 periods I use triggers (for oDate and oDate1).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 18:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575779#M1103247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-14T18:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575780#M1103248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calendar object is correct may be you can use Text objects for Performance calculation with its calculation formula weather from expression or variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 18:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575780#M1103248</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-14T18:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575781#M1103249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be, but the problem not always I have 3 variables and I'm limited with space.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 19:08:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575781#M1103249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-14T19:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575782#M1103250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your field needs not to be a data island, it needs to associate into (or be part of) your main fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Presently you have three expressions for Purchase Horizon, Likelihood and Brand.&amp;nbsp; The three expressions should be instead be Change, Comparison and Campaign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the layout you should change from being a Pivot Table to being a Straight Table (on the General tab) and then change the display to be Horizontal on the Presentation tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will be able to do some conditional formatting on the background and text colours, but will not be able to get quite the look you have there with a straight table.&amp;nbsp; The only way to get that would be to use text objects - but that would not flex if you had more dimensions (it's also trickier to maintain).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally I would use the date variables in Set Analysis rather than applying selections; this way you can do comparative expressions easier.&amp;nbsp; You will find plenty of Set Analysis examples on the Community - there are a couple I have uploaded, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps point you in the correct direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 22:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575782#M1103250</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-04-14T22:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575783#M1103251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like I need.&lt;/P&gt;&lt;P&gt;Then I need to think how to hide, if there is no 1 or 2 variables.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 15:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575783#M1103251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-15T15:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575784#M1103252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you go the route I suggested - having the &lt;STRONG&gt;Field &lt;/STRONG&gt;field joined to the main data table, the Straight Table should flex to give you the number of rows you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 15:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575784#M1103252</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-04-15T15:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Pivot table issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575785#M1103253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other words, I need to add variable Field to main file?&lt;/P&gt;&lt;P&gt;I have 3 expression with set analysis.&lt;/P&gt;&lt;P&gt;All results are the same. Because variable Field doesn't associate with any variable from main file.&lt;/P&gt;&lt;P&gt;Could you have a look at my file.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 15:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575785#M1103253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-15T15:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575786#M1103254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done a number of QlikView apps over survey data and I would strongly recommend that you CrossTable your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way instead of having separate columns for each of the results you will have a single 'Result' column and a row (four initially) for each of the different answers for each survey, with a QuestionID next to each value.&amp;nbsp; The record set would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SurveyDate,Campaign,QuestionID,Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then either link to a Questions table on the ID or pull the Question into the data set directly (perhaps with ApplyMap).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have done this you can use the Question Name as a dimension and calculate all of the associated values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The real beauty of this is that you can have different number of questions for each campaign and the data just flexes to accommodate the new or removed questions.&amp;nbsp; Your app can grow and grow with no changes to the data model or the presentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should find plenty of information on CrossTable and ApplyMap if you search for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 19:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-issue/m-p/575786#M1103254</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-04-15T19:00:25Z</dc:date>
    </item>
  </channel>
</rss>

