<?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: Crosstable with multiple Attribute/Data fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065263#M937105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CrossTable(Quarter, Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD id, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [revenue Q1]&amp;amp;'|'&amp;amp;[profit Q1], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [revenue Q2]&amp;amp;'|'&amp;amp;[profit Q2]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="206120" data-objecttype="1" href="https://community.qlik.com/thread/206120"&gt;https://community.qlik.com/thread/206120&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD id,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; KeepChar(SubField(Quarter, '|', 1), 'Q1234') as Quarter,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubField(Value, '|', 1) as Revenue,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubField(Value, '|', 2) as Profit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115167_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Feb 2016 18:14:40 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-02-18T18:14:40Z</dc:date>
    <item>
      <title>Crosstable with multiple Attribute/Data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065262#M937104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to group attributes and data? If I had a Crosstable like this&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;id&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;revenue Q1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;profit Q1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;revenue Q2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;profit Q2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;213&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1323&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;213&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5435&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3454&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;43534&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3454&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to group revenues and profits as separate attributes to display them separately in charts. Now same thing with a lof of different categories, so loading a crosstable for each would be pretty inefficient. Now I guess there might be a way with calculated dimensions or expressions, but I am pretty clueless when it comes to that as I have just started using qlikview, so any help here would be appreciated. Is there anything like regex to match the categories?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;-Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 15:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065262#M937104</guid>
      <dc:creator />
      <dc:date>2016-02-18T15:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstable with multiple Attribute/Data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065263#M937105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CrossTable(Quarter, Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD id, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [revenue Q1]&amp;amp;'|'&amp;amp;[profit Q1], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [revenue Q2]&amp;amp;'|'&amp;amp;[profit Q2]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="206120" data-objecttype="1" href="https://community.qlik.com/thread/206120"&gt;https://community.qlik.com/thread/206120&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD id,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; KeepChar(SubField(Quarter, '|', 1), 'Q1234') as Quarter,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubField(Value, '|', 1) as Revenue,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubField(Value, '|', 2) as Profit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115167_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 18:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065263#M937105</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-18T18:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstable with multiple Attribute/Data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065264#M937106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have to do it in two steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;CrossTable(Field, Value)&lt;/P&gt;&lt;P&gt;LOAD * FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(Field, ' ', 1) as Category,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(Field, ' ', -1) as Quarter&lt;/P&gt;&lt;P&gt;RESIDENT Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 18:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065264#M937106</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-18T18:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstable with multiple Attribute/Data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065265#M937107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, it works. One more followup, can you fix a Chart on a category? As in have two charts, one always shows revenue, one always showing profits. Or do I have to do it like the other User suggested and split them into one more column?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065265#M937107</guid>
      <dc:creator />
      <dc:date>2016-02-19T14:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstable with multiple Attribute/Data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065266#M937108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks it works like this, wish I could mark multiple as correct. Is there an alternative to KeepChar here? Cause I have a couple more categories that would contain some of the kept characters.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065266#M937108</guid>
      <dc:creator />
      <dc:date>2016-02-19T14:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstable with multiple Attribute/Data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065267#M937109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try TextBetween() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; TextBetween(Quarter, ' ', '|')) as Quarter&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 16:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065267#M937109</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-19T16:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstable with multiple Attribute/Data fields</title>
      <link>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065268#M937110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can 'fix' the category in the expression. Change for example sum(Value) to sum({&amp;lt;Category={'Profit'}&amp;gt;}Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 16:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crosstable-with-multiple-Attribute-Data-fields/m-p/1065268#M937110</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-19T16:55:42Z</dc:date>
    </item>
  </channel>
</rss>

