<?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: One to Many Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235674#M86927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response Erich. Your solution definitely works based on the sample qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My application is more complicated that the example with many more "Country" type fields, therefore may not be suitable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may have to retest the calendar island solution with the two fact tables joined by the ProdClass using SetAnalysis, which I hope would perform better than the IF statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let you know how I go. Thanks for all your generous help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2011 01:41:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-10T01:41:41Z</dc:date>
    <item>
      <title>One to Many Issue</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235666#M86919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have sales "detail" tables that provides information down to the stock code level by day, but I have a budget file that is only at the Product Class level for each month. Each stock code has a Product Class. I need to see detail information and also summary information compared to budget. My linking current creates a one to many problem. How do I do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 17:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235666#M86919</guid>
      <dc:creator />
      <dc:date>2011-04-29T17:46:11Z</dc:date>
    </item>
    <item>
      <title>One to Many Issue</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235667#M86920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Stephen&lt;/P&gt;&lt;P&gt;I would concatenate everything on a single Fact Table. I woudl associate the budget with the first date of the month (could be anydate, actually).&lt;/P&gt;&lt;P&gt;The budget will have null values for the stock code dimension.&lt;/P&gt;&lt;P&gt;I would solve the rest on the interface.&lt;/P&gt;&lt;P&gt;I only allow the user to compare sales and budget at the Product Class and Month level.&lt;/P&gt;&lt;P&gt;If the user selects a stock code, the budget will be null, which is ok because there is no budget at this level.&lt;/P&gt;&lt;P&gt;If the user selects a day, he will not get a budget either, because there is no daily budget.&lt;/P&gt;&lt;P&gt;I included an application to show this in action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used different fields to include the sales result (VALUE) and BUDGET. You could use a single field to put the number and an additional field with a flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Apr 2011 15:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235667#M86920</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-30T15:49:44Z</dc:date>
    </item>
    <item>
      <title>One to Many Issue</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235668#M86921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;In your attached example, what if a user selected SKU 1 and wants to return the following in Table 3?&lt;/P&gt;&lt;P&gt;a) Value = 50&lt;/P&gt;&lt;P&gt;b) Budget = 100, essentially the Budget for Product Class A in Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 May 2011 15:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235668#M86921</guid>
      <dc:creator />
      <dc:date>2011-05-07T15:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Issue</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235669#M86922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see three options here.&lt;/P&gt;&lt;P&gt;I describe them, but also included on the example file: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Budget1:&lt;/P&gt;&lt;P&gt;sum( {&amp;lt;SKU= &amp;gt;}BUDGET) - ignores the selecion on SKU. This may generate results for others lines &lt;/P&gt;&lt;P&gt;Budget2:&lt;/P&gt;&lt;P&gt;= IF( SUM(VALUE)&amp;gt;0, sum( {&amp;lt;SKU= &amp;gt;}BUDGET)) - this will show the buget of the category for the product associated with the SKU (check an error at the total line)&lt;/P&gt;&lt;P&gt;Budget3: &lt;/P&gt;&lt;P&gt;SUM( AGGR(&amp;nbsp; IF( SUM(VALUE)&amp;gt;0, sum( {&amp;lt;SKU= &amp;gt;}BUDGET)), [PRODUCT CLASS],PERIOD))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third option (recommended) will do basically the same thing that the second, but will reproduce the results on the total line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 May 2011 20:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235669#M86922</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-07T20:10:58Z</dc:date>
    </item>
    <item>
      <title>One to Many Issue</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235670#M86923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response Erich. It did help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an extension to the answer, if SKU 1 is selected again, Budget3 returns 100 for the January Period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be possible to amend Budget 3 such that it returned the value for Feb as well? basically returning the Budget value for Product Class A for all months based on the SKU selection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prod Class&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Budget&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 110&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you're able to help on this one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 May 2011 23:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235670#M86923</guid>
      <dc:creator />
      <dc:date>2011-05-07T23:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Issue</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235671#M86924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I created another function: &lt;/P&gt;&lt;P&gt;In this case, I use the product class which has some value at any point in time. (Indirect Set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {&amp;lt;SKU= , [PRODUCT CLASS]={'=SUM(VALUE)&amp;gt;0'}&amp;gt;}BUDGET)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, check attachment too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich Shiino&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 May 2011 16:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235671#M86924</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-08T16:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Issue</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235672#M86925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked your most recent suggestion and the code works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one further complication, there's an additional field attached to the Budget table called "Country". Using SKU 1 as the filter, your formula returns the correct result as follows:&lt;/P&gt;&lt;P&gt;Period&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Budget&lt;/P&gt;&lt;P&gt;Jan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;Feb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 110&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the following result, without much success with my limited knowledge of set analysis, and have tried to modify your suggestion but afraid I am probably doing more harm than good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where a user makes a selection on Country, I need the Value to stay static at 50, but the Budget to reflect the selection on Country, as follows:&lt;/P&gt;&lt;P&gt;Period&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Budget&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country&lt;/P&gt;&lt;P&gt;Jan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =X&lt;/P&gt;&lt;P&gt;Feb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 110&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Period&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Budget&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country&lt;/P&gt;&lt;P&gt;Feb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 110&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately, the Value will be divided by the Budget to get a ratio in a graph format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 00:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235672#M86925</guid>
      <dc:creator />
      <dc:date>2011-05-10T00:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Issue</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235673#M86926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the actuals should have the same dimension. Then it would make more sense to compare it with the budget. &lt;/P&gt;&lt;P&gt;If you need to keep it like this, I'm afraid my solution will not be so general as the others. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a second country field (refCountry) which is a data island (disconnected from the model). This way you can make selections in sku and still have something to select on country (or refCountry). &lt;/P&gt;&lt;P&gt;I reconnect this field only on the expression level using p(). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I say that for the budget, I must not consider sku (because this level of detail does not exist) but I say the country must obey the selection in refCountry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it's better to understand it at the application. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 01:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235673#M86926</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-10T01:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: One to Many Issue</title>
      <link>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235674#M86927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response Erich. Your solution definitely works based on the sample qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My application is more complicated that the example with many more "Country" type fields, therefore may not be suitable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may have to retest the calendar island solution with the two fact tables joined by the ProdClass using SetAnalysis, which I hope would perform better than the IF statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let you know how I go. Thanks for all your generous help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 01:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-to-Many-Issue/m-p/235674#M86927</guid>
      <dc:creator />
      <dc:date>2011-05-10T01:41:41Z</dc:date>
    </item>
  </channel>
</rss>

