<?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: Categorize a field with values and creating a pivot chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Categorize-a-field-with-values-and-creating-a-pivot-chart/m-p/1672784#M729831</link>
    <description>&lt;P&gt;Apparently you came up with the solution Brett, well done! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/44322"&gt;@sayadutt&lt;/a&gt;&amp;nbsp; I don't know if you can fix it, but it would be nice if you did.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 07:24:44 GMT</pubDate>
    <dc:creator>Rodj</dc:creator>
    <dc:date>2020-02-06T07:24:44Z</dc:date>
    <item>
      <title>Categorize a field with values and creating a pivot chart</title>
      <link>https://community.qlik.com/t5/QlikView/Categorize-a-field-with-values-and-creating-a-pivot-chart/m-p/1663468#M729828</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have data like below&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;A: Pass&lt;/TD&gt;&lt;TD&gt;A: Fail&lt;/TD&gt;&lt;TD&gt;B:Pass&lt;/TD&gt;&lt;TD&gt;B:Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best way to categorize the above data and create a pivot table out of it. I am looking for the below pivot table&lt;/P&gt;&lt;P&gt;Need Group A and B at top (horizontally)&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Group&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;A: Pass&lt;/TD&gt;&lt;TD&gt;A: Fail&lt;/TD&gt;&lt;TD&gt;B:Pass&lt;/TD&gt;&lt;TD&gt;B:Fail&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Categorize-a-field-with-values-and-creating-a-pivot-chart/m-p/1663468#M729828</guid>
      <dc:creator>sayadutt</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Categorize a field with values and creating a pivot chart</title>
      <link>https://community.qlik.com/t5/QlikView/Categorize-a-field-with-values-and-creating-a-pivot-chart/m-p/1663485#M729829</link>
      <description>&lt;P&gt;Basically you need to pivot your data and create another field with the values 'A' and 'B' that you can use as a dimension in your pivot table. First we pivot the table using the crosstable function:&lt;/P&gt;&lt;P&gt;Temp_table:&lt;/P&gt;&lt;P&gt;Crosstable(Category, Value, 1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; A: Pass,&lt;/P&gt;&lt;P&gt;&amp;nbsp; A: Fail,&lt;/P&gt;&lt;P&gt;&amp;nbsp; B:Pass,&lt;/P&gt;&lt;P&gt;&amp;nbsp; B:Fail&lt;/P&gt;&lt;P&gt;&amp;lt;from whatever your source is&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we can derive the new column:&lt;/P&gt;&lt;P&gt;Final_table:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Category,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(FindOneOf(Category, 'A:') &amp;gt; 0, 'A',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; if(FindOneOf(Category, 'B:') &amp;gt; 0, 'B')) as Group,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Value;&lt;/P&gt;&lt;P&gt;resident Temp_table;&lt;/P&gt;&lt;P&gt;drop table Temp_table; //as it is no longer needed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you can build your pivot table with Month, Group and Category as dimensions and value as your measure. Aligning them the way you want is just a matter of moving them around.&lt;/P&gt;&lt;P&gt;I hope that puts you on the right track.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 21:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Categorize-a-field-with-values-and-creating-a-pivot-chart/m-p/1663485#M729829</guid>
      <dc:creator>Rodj</dc:creator>
      <dc:date>2020-01-07T21:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Categorize a field with values and creating a pivot chart</title>
      <link>https://community.qlik.com/t5/QlikView/Categorize-a-field-with-values-and-creating-a-pivot-chart/m-p/1672698#M729830</link>
      <description>&lt;P&gt;Did Rodj's post get you what you needed to get your layout as you wished?&amp;nbsp; If so, do not forget to return to this thread and use the Accept as Solution button on that post to give them credit for the assistance.&amp;nbsp; This also confirms to other Community Members that things worked too.&amp;nbsp; If you are still working upon things, please leave an update.&amp;nbsp; Since you do have the other post as well, you may also want to provide the link to each of them in the other post too.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 20:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Categorize-a-field-with-values-and-creating-a-pivot-chart/m-p/1672698#M729830</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-02-05T20:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Categorize a field with values and creating a pivot chart</title>
      <link>https://community.qlik.com/t5/QlikView/Categorize-a-field-with-values-and-creating-a-pivot-chart/m-p/1672784#M729831</link>
      <description>&lt;P&gt;Apparently you came up with the solution Brett, well done! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/44322"&gt;@sayadutt&lt;/a&gt;&amp;nbsp; I don't know if you can fix it, but it would be nice if you did.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 07:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Categorize-a-field-with-values-and-creating-a-pivot-chart/m-p/1672784#M729831</guid>
      <dc:creator>Rodj</dc:creator>
      <dc:date>2020-02-06T07:24:44Z</dc:date>
    </item>
  </channel>
</rss>

