<?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: External grouping according to fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660694#M49563</link>
    <description>&lt;P&gt;Check this attachment&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;If(Match(Category, 'BILLED'), Pick(Match(field, 'billedActivity','billedCharged', 'billedDuration'), Sum(billedActivity), Sum(billedCharged), Sum(billedDuration)),&lt;BR /&gt;If(Match(Category, 'TOTAL'), Pick(Match(field, 'totalActivity','totalcharge', 'totalDuration'), Sum(totalActivity), Sum(totalcharge), Sum(totalDuration))))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Or&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;If(Match(Category, 'BILLED') and Match(field, 'billedActivity'), Sum(billedActivity),&lt;BR /&gt;If(Match(Category, 'BILLED') and Match(field, 'billedCharged'), Sum(billedCharged),&lt;BR /&gt;If(Match(Category, 'BILLED') and Match(field, 'billedDuration'), Sum(billedDuration),&lt;BR /&gt;If(Match(Category, 'TOTAL') and Match(field, 'totalActivity'), Sum(totalActivity),&lt;BR /&gt;If(Match(Category, 'TOTAL') and Match(field, 'totalcharge'), Sum(totalcharge),&lt;BR /&gt;If(Match(Category, 'TOTAL') and Match(field, 'totalDuration'), Sum(totalDuration)))))))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2019 10:41:42 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2019-12-26T10:41:42Z</dc:date>
    <item>
      <title>External grouping according to fields</title>
      <link>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660664#M49557</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;I need your help about creating a grouping in the pivot table.&lt;/P&gt;&lt;P&gt;I have a data like:&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;fileName,&lt;/P&gt;&lt;P&gt;Company,&lt;/P&gt;&lt;P&gt;totalActivity,&lt;/P&gt;&lt;P&gt;totalDuration,&lt;/P&gt;&lt;P&gt;totalcharge,&lt;/P&gt;&lt;P&gt;billedActivity,&lt;/P&gt;&lt;P&gt;billedDuration,&lt;/P&gt;&lt;P&gt;billedCharged&lt;/P&gt;&lt;P&gt;from....&lt;/P&gt;&lt;P&gt;I have a graph like:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FileName&lt;/TD&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;TD&gt;TOTAL&lt;/TD&gt;&lt;TD&gt;BILLED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;totalActivity&lt;/TD&gt;&lt;TD&gt;totalDuration&lt;/TD&gt;&lt;TD&gt;totalcharge&lt;/TD&gt;&lt;TD&gt;billedActivity&lt;/TD&gt;&lt;TD&gt;billedDuration&lt;/TD&gt;&lt;TD&gt;billedCharged&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;....&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;....&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a pivot table and created a new table like:&lt;/P&gt;&lt;P&gt;Load * inline[&lt;/P&gt;&lt;P&gt;Category, field&lt;/P&gt;&lt;P&gt;'TOTAL',&amp;nbsp;totalActivity&lt;/P&gt;&lt;P&gt;'TOTAL',&amp;nbsp;totalDuration&lt;/P&gt;&lt;P&gt;'TOTAL',&amp;nbsp;totalcharge&lt;/P&gt;&lt;P&gt;'BILLED', billedActivity&lt;/P&gt;&lt;P&gt;'BILLED',&amp;nbsp;billedDuration&lt;/P&gt;&lt;P&gt;'BILLED',&amp;nbsp;billedCharged&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;This turns out to be far from what i need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 08:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660664#M49557</guid>
      <dc:creator>tommyl</dc:creator>
      <dc:date>2019-12-26T08:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: External grouping according to fields</title>
      <link>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660667#M49558</link>
      <description>&lt;P&gt;What is the expected now?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 08:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660667#M49558</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-12-26T08:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: External grouping according to fields</title>
      <link>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660669#M49559</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How can i add a field with the values&amp;nbsp; 'Total' and 'Billed' so that when i add this dimension to the pivot table as Column, related group will be done over the measures i sent above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 09:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660669#M49559</guid>
      <dc:creator>tommyl</dc:creator>
      <dc:date>2019-12-26T09:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: External grouping according to fields</title>
      <link>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660676#M49560</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Group.PNG" style="width: 821px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26024iB7A18DA5F607996B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Group.PNG" alt="Group.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 09:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660676#M49560</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-12-26T09:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: External grouping according to fields</title>
      <link>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660688#M49561</link>
      <description>&lt;P&gt;Yes, that's the one.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 10:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660688#M49561</guid>
      <dc:creator>tommyl</dc:creator>
      <dc:date>2019-12-26T10:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: External grouping according to fields</title>
      <link>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660694#M49563</link>
      <description>&lt;P&gt;Check this attachment&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;If(Match(Category, 'BILLED'), Pick(Match(field, 'billedActivity','billedCharged', 'billedDuration'), Sum(billedActivity), Sum(billedCharged), Sum(billedDuration)),&lt;BR /&gt;If(Match(Category, 'TOTAL'), Pick(Match(field, 'totalActivity','totalcharge', 'totalDuration'), Sum(totalActivity), Sum(totalcharge), Sum(totalDuration))))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Or&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;If(Match(Category, 'BILLED') and Match(field, 'billedActivity'), Sum(billedActivity),&lt;BR /&gt;If(Match(Category, 'BILLED') and Match(field, 'billedCharged'), Sum(billedCharged),&lt;BR /&gt;If(Match(Category, 'BILLED') and Match(field, 'billedDuration'), Sum(billedDuration),&lt;BR /&gt;If(Match(Category, 'TOTAL') and Match(field, 'totalActivity'), Sum(totalActivity),&lt;BR /&gt;If(Match(Category, 'TOTAL') and Match(field, 'totalcharge'), Sum(totalcharge),&lt;BR /&gt;If(Match(Category, 'TOTAL') and Match(field, 'totalDuration'), Sum(totalDuration)))))))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 10:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1660694#M49563</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-12-26T10:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: External grouping according to fields</title>
      <link>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1662823#M49811</link>
      <description>&lt;P&gt;Hello Anil,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your solution but i couldnt manage it. Could you please check below too?:&lt;/P&gt;&lt;P&gt;* I need to keep the table i created in the load editor(with the category and field values), right?&lt;/P&gt;&lt;P&gt;* I need to use either of your expressions as a calculated dimension, right?&lt;/P&gt;&lt;P&gt;* I wrote the dimension names within '', is it correct too?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 09:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1662823#M49811</guid>
      <dc:creator>tommyl</dc:creator>
      <dc:date>2020-01-06T09:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: External grouping according to fields</title>
      <link>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1662829#M49813</link>
      <description>&lt;P&gt;&lt;FONT color="#FF0000"&gt;* I need to keep the table i created in the load editor(with the category and field values), right?&lt;/FONT&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Right&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;* I need to use either of your expressions as a calculated dimension, right?&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;Dim 1 - fileName&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Dim 2 - Company&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Dim 3 - CATEGORY&lt;/STRONG&gt;&lt;BR /&gt;-- where as Dim 3 created in script with&lt;BR /&gt;&lt;STRONG&gt;Load * Inline [&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CATEGORY&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;BILLED&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TOTAL&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Dim 4 - field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression -&lt;BR /&gt;&lt;STRONG&gt;If(Match(Category, 'BILLED'), Pick(Match(field, 'billedActivity','billedCharged', 'billedDuration'), Sum (billedActivity), Sum(billedCharged), Sum(billedDuration)),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If(Match(Category, 'TOTAL'), Pick(Match(field, 'totalActivity','totalcharge', 'totalDuration'), Sum (totalActivity), Sum(totalcharge), Sum(totalDuration))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;* I wrote the dimension names within '', is it correct too?&lt;/FONT&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;I hope, Second point will concur the same&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 09:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/External-grouping-according-to-fields/m-p/1662829#M49813</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2020-01-06T09:48:02Z</dc:date>
    </item>
  </channel>
</rss>

