<?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 Sum if a value matches in Pivot Table using an unrelated Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-if-a-value-matches-in-Pivot-Table-using-an-unrelated/m-p/1703214#M451328</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a transaction table, using 2 different dimensions say Region_a, Region_b of that transaction I have created a new dimension say Region.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This new Region column is loaded as Inline(there could be a better way) script as follows:&lt;/P&gt;&lt;P&gt;Load Region_a&lt;/P&gt;&lt;P&gt;Resident Transaction;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load Region_b&lt;/P&gt;&lt;P&gt;Resident Transaction;&lt;/P&gt;&lt;P&gt;The reason for doing this is that I need to create a Pivot Table which needs to have all the Regions and the Pivot table needs to be like below:&lt;/P&gt;&lt;TABLE width="306"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="47"&gt;Region&lt;/TD&gt;&lt;TD width="95"&gt;Region_a Sales&lt;/TD&gt;&lt;TD width="95"&gt;Region_b Sales&lt;/TD&gt;&lt;TD width="69"&gt;Difference&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;55&lt;/TD&gt;&lt;TD&gt;-&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;Difference can be calculated once am able to calculate Sales. Is there anyway using Set Analysis I can write that if Region matched Region_a then give me sales or any other better method. I have tried Sum (if), Set analysis stating Region=Region_a but none of them are working. Strange thing sum(if) is not giving me correct data for all the regions. Any help would be great!&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:37:24 GMT</pubDate>
    <dc:creator>salonibhatia</dc:creator>
    <dc:date>2024-11-16T18:37:24Z</dc:date>
    <item>
      <title>Sum if a value matches in Pivot Table using an unrelated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-a-value-matches-in-Pivot-Table-using-an-unrelated/m-p/1703214#M451328</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a transaction table, using 2 different dimensions say Region_a, Region_b of that transaction I have created a new dimension say Region.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This new Region column is loaded as Inline(there could be a better way) script as follows:&lt;/P&gt;&lt;P&gt;Load Region_a&lt;/P&gt;&lt;P&gt;Resident Transaction;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load Region_b&lt;/P&gt;&lt;P&gt;Resident Transaction;&lt;/P&gt;&lt;P&gt;The reason for doing this is that I need to create a Pivot Table which needs to have all the Regions and the Pivot table needs to be like below:&lt;/P&gt;&lt;TABLE width="306"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="47"&gt;Region&lt;/TD&gt;&lt;TD width="95"&gt;Region_a Sales&lt;/TD&gt;&lt;TD width="95"&gt;Region_b Sales&lt;/TD&gt;&lt;TD width="69"&gt;Difference&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;55&lt;/TD&gt;&lt;TD&gt;-&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;Difference can be calculated once am able to calculate Sales. Is there anyway using Set Analysis I can write that if Region matched Region_a then give me sales or any other better method. I have tried Sum (if), Set analysis stating Region=Region_a but none of them are working. Strange thing sum(if) is not giving me correct data for all the regions. Any help would be great!&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-a-value-matches-in-Pivot-Table-using-an-unrelated/m-p/1703214#M451328</guid>
      <dc:creator>salonibhatia</dc:creator>
      <dc:date>2024-11-16T18:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if a value matches in Pivot Table using an unrelated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-a-value-matches-in-Pivot-Table-using-an-unrelated/m-p/1703328#M451331</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; Any suggestions?&amp;nbsp; I have found a fix by making Region columns as per the specific concatenated tables in the transaction but am not that happy with this fix, looking for a better solution. Please help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 07:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-a-value-matches-in-Pivot-Table-using-an-unrelated/m-p/1703328#M451331</guid>
      <dc:creator>salonibhatia</dc:creator>
      <dc:date>2020-05-19T07:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if a value matches in Pivot Table using an unrelated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-a-value-matches-in-Pivot-Table-using-an-unrelated/m-p/1703396#M451336</link>
      <description>&lt;P&gt;Hi, I am not entirely sure I understand what you are trying to do. Would you be able to share the solution that you implemented which might give idea as to what you are trying to do.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 11:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-a-value-matches-in-Pivot-Table-using-an-unrelated/m-p/1703396#M451336</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-05-19T11:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum if a value matches in Pivot Table using an unrelated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-a-value-matches-in-Pivot-Table-using-an-unrelated/m-p/1705638#M451447</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; Apologies for the late reply! Even though all the transaction tables are concatenated, there are some tables having salesamount for Region_a mapping and others having sales of region_b, so I created a common field region as below:&lt;/P&gt;&lt;P&gt;Transaction:&lt;/P&gt;&lt;P&gt;Load*,Region_a as region&lt;/P&gt;&lt;P&gt;Resident xyz.qvd;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;Load *,Region_b as region&lt;/P&gt;&lt;P&gt;resident gef.qvd;&lt;/P&gt;&lt;P&gt;I did this for all the tables concatenated and then I used the sum as required.&lt;/P&gt;&lt;P&gt;Earlier, I tried creating an island table which concatenated all the regions. After that I was trying to use sum(if) but that didn't work. Luckily the tables were little different and this method worked but, there would definitely be a better way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried linking that data island but since some tables had Region_a and other had Region_b, it didn't work.&lt;/P&gt;&lt;P&gt;Hope this explains!&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 13:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-a-value-matches-in-Pivot-Table-using-an-unrelated/m-p/1705638#M451447</guid>
      <dc:creator>salonibhatia</dc:creator>
      <dc:date>2020-05-27T13:02:12Z</dc:date>
    </item>
  </channel>
</rss>

