<?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: show value for different dimention in graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518664#M437264</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%OrigItem, %Item2, Description, exprStock, exprAvgSales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1304745, 1304745, TEST PROD A, sum(Stock), &lt;STRONG&gt;avg&lt;/STRONG&gt;(&lt;STRONG&gt;TOTAL&amp;lt;%OrigItem&amp;gt;&lt;/STRONG&gt; AvgSales)&amp;nbsp;product 1304745&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1304745, 1304913, TEST PROD B, sum(Stock), &lt;STRONG&gt;avg&lt;/STRONG&gt;(&lt;STRONG&gt;TOTAL&amp;lt;%OrigItem&amp;gt;&lt;/STRONG&gt; AvgSales)&amp;nbsp;product 1304745&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I mean use Total by&amp;nbsp;OrigItem field for second expression, and Avg, not sum.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 12:59:20 GMT</pubDate>
    <dc:creator>Zhandos_Shotan</dc:creator>
    <dc:date>2018-12-10T12:59:20Z</dc:date>
    <item>
      <title>show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518590#M437254</link>
      <description>&lt;P&gt;Can someone help me with the following issue that I'm having:&lt;/P&gt;&lt;P&gt;We have a list of products, that contain the following data:&lt;BR /&gt;%OrigItem, %Item2, Description&lt;/P&gt;&lt;P&gt;1304745, 1304745, TEST PROD A&lt;BR /&gt;1304745, 1304913, TEST PROD B&lt;/P&gt;&lt;P&gt;%OrigItem is the original productnumber.&lt;BR /&gt;%Item2 is the replacement productnumber for %OrigItem.&lt;/P&gt;&lt;P&gt;In a different table we have the stock (=Stock) + average sales (=AvgSales) for each %Item2&amp;nbsp;and I would like to show the following in a tablechart:&lt;/P&gt;&lt;P&gt;1304745, 1304745, TEST PROD A, sum(Stock) product 1304745, sum(AvgSales) product 1304745&lt;BR /&gt;1304745, 1304913, TEST PROD B, sum(Stock) product 1304913, sum(AvgSales) product 1304745&lt;/P&gt;&lt;P&gt;So&amp;nbsp;for the replacement product B, I still want to show the total sales for product A.&lt;/P&gt;&lt;P&gt;How can this be done using set analyses?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 11:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518590#M437254</guid>
      <dc:creator>bert_geraerts</dc:creator>
      <dc:date>2018-12-10T11:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518599#M437257</link>
      <description>&lt;P&gt;Hi Bert,&lt;/P&gt;&lt;P&gt;use the below formula in expression.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN&gt;%Item2 = {'1304745'}&amp;gt;}Stock)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;%Item2 = {'1304745'}&amp;gt;}AvgSales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;%Item2 = {'1304913'}&amp;gt;}Stock)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;%Item2 = {'1304745'}&amp;gt;}AvgSales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 11:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518599#M437257</guid>
      <dc:creator>karthikoffi27se</dc:creator>
      <dc:date>2018-12-10T11:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518638#M437261</link>
      <description>&lt;P&gt;I already tried that, but it is not showing any result for PROD B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1895iE2533FD043F8DFA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.JPG" alt="example.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 12:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518638#M437261</guid>
      <dc:creator>bert_geraerts</dc:creator>
      <dc:date>2018-12-10T12:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518664#M437264</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%OrigItem, %Item2, Description, exprStock, exprAvgSales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1304745, 1304745, TEST PROD A, sum(Stock), &lt;STRONG&gt;avg&lt;/STRONG&gt;(&lt;STRONG&gt;TOTAL&amp;lt;%OrigItem&amp;gt;&lt;/STRONG&gt; AvgSales)&amp;nbsp;product 1304745&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1304745, 1304913, TEST PROD B, sum(Stock), &lt;STRONG&gt;avg&lt;/STRONG&gt;(&lt;STRONG&gt;TOTAL&amp;lt;%OrigItem&amp;gt;&lt;/STRONG&gt; AvgSales)&amp;nbsp;product 1304745&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I mean use Total by&amp;nbsp;OrigItem field for second expression, and Avg, not sum.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 12:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518664#M437264</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2018-12-10T12:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518677#M437265</link>
      <description>&lt;P&gt;Almost got it, when I use the following formula I get the correct result for both lines --&amp;gt; 55&lt;/P&gt;&lt;PRE&gt;avg(TOTAL{&amp;lt;%Item2 = {'1304745'}&amp;gt;}AvgSales)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;But when I try to integrate this with the existing fields, I get the wrong result --&amp;gt; 44&lt;BR /&gt;I only need this when %OrigItem &amp;lt;&amp;gt; %Item for that line.&lt;/P&gt;&lt;PRE&gt;avg(TOTAL{&amp;lt;%Item2 = {'=%OrigItem'}&amp;gt;}AvgSales)&lt;/PRE&gt;&lt;P&gt;Any more advise?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 13:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518677#M437265</guid>
      <dc:creator>bert_geraerts</dc:creator>
      <dc:date>2018-12-10T13:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518687#M437266</link>
      <description>&lt;P&gt;Then use IF condition, like this:&lt;/P&gt;&lt;P&gt;If (&lt;SPAN&gt;%OrigItem &amp;lt;&amp;gt; %Item,&amp;nbsp; &amp;nbsp;expression1,&amp;nbsp; &amp;nbsp;expression2&lt;/SPAN&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 13:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518687#M437266</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2018-12-10T13:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518691#M437267</link>
      <description>&lt;P&gt;That doesn't help, since that doesn't change the result.&lt;/P&gt;&lt;P&gt;In the example below I have entered a third product.&lt;BR /&gt;Using the provided formula it will always give me the overall average for all lines.&lt;/P&gt;&lt;PRE&gt;if(%OrigItem &amp;lt;&amp;gt; %Item2, avg(TOTAL{&amp;lt;%Item2 = {'=%OrigItem'}&amp;gt;}AvgSales), sum(AvgSales))&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.JPG" style="width: 667px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1899i84AEB75211CE453D/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.JPG" alt="example.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I use the fixed number, the result is perfect.&lt;/P&gt;&lt;PRE&gt;if(%OrigItem &amp;lt;&amp;gt; %Item2, avg(TOTAL{&amp;lt;%Item2 = {'1304745'}&amp;gt;}AvgSales), sum(AvgSales))&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 13:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518691#M437267</guid>
      <dc:creator>bert_geraerts</dc:creator>
      <dc:date>2018-12-10T13:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518969#M437304</link>
      <description>&lt;PRE&gt;avg(TOTAL{&amp;lt;%Item2 = {'=%OrigItem'}&amp;gt;}AvgSales)&lt;/PRE&gt;&lt;P&gt;..that expression is not correct. You using&amp;nbsp; set analysis expression and TOTAL by all table records, not by field.&lt;/P&gt;&lt;P&gt;Correct syntax for Totals by field values: &lt;STRONG&gt;Total &amp;lt;FieldName&amp;gt;&lt;/STRONG&gt; . See example 2 below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Examples%20of%20Aggregate%20Qualifiers.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Examples%20of%20Aggregate%20Qualifiers.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did you tested thats expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;avg&lt;/STRONG&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;TOTAL&amp;lt;%OrigItem&amp;gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;AvgSales)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 06:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1518969#M437304</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2018-12-11T06:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1519025#M437305</link>
      <description>&lt;P&gt;Zhandos,&lt;/P&gt;&lt;P&gt;I was using set analysis because we want to show the total sales for a different dimension.&lt;BR /&gt;If I follow you're advice, I get an average for both %OrigItem ,since there are always 2.&lt;/P&gt;&lt;P&gt;However you might have given me an idea, I need to add another field to my table, that shows %origItem only when it is the replacement-nr.&amp;nbsp; Then I can use the "TOTAL"-formule and it should work.&lt;/P&gt;&lt;P&gt;I was thinking that maybee it was possible to do this with set analysis, but apparently it isn't.&lt;/P&gt;&lt;P&gt;Thx for the assistance!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 08:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1519025#M437305</guid>
      <dc:creator>bert_geraerts</dc:creator>
      <dc:date>2018-12-11T08:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1519042#M437306</link>
      <description>I was wrong, this still shows me the avg value for my original dimension and not the dimension I want. So I keep ending up with the same problem.&lt;BR /&gt;&lt;BR /&gt;If there isn't any other sollution then I'm afraid that the only thing I can do is to add a complete new dataset linking to the replacementnr. This however involves a lot of data, that i was trying to avoid.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2018 08:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1519042#M437306</guid>
      <dc:creator>bert_geraerts</dc:creator>
      <dc:date>2018-12-11T08:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1519124#M437321</link>
      <description>&lt;P&gt;Finally i get what you want!&lt;/P&gt;&lt;P&gt;Here is decision:&lt;/P&gt;&lt;P&gt;if(%Item2&amp;lt;&amp;gt;%OrigItem,&lt;BR /&gt;sum({&amp;lt;%Item2=P({1}%OrigItem)&amp;gt;} total&amp;lt;%OrigItem&amp;gt; AvgSales),&lt;BR /&gt;sum(AvgSales)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;and qvw file.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 10:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1519124#M437321</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2018-12-11T10:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: show value for different dimention in graph</title>
      <link>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1519148#M437329</link>
      <description>Perfect, thx !</description>
      <pubDate>Tue, 11 Dec 2018 10:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-value-for-different-dimention-in-graph/m-p/1519148#M437329</guid>
      <dc:creator>bert_geraerts</dc:creator>
      <dc:date>2018-12-11T10:26:27Z</dc:date>
    </item>
  </channel>
</rss>

