<?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: Yearly Target values not mapped to Fact table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522843#M737494</link>
    <description>Hi Sunny,&lt;BR /&gt;Works well, thank you very much.</description>
    <pubDate>Thu, 20 Dec 2018 07:03:59 GMT</pubDate>
    <dc:creator>divya_anand</dc:creator>
    <dc:date>2018-12-20T07:03:59Z</dc:date>
    <item>
      <title>Yearly Target values not mapped to Fact table</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522489#M737487</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to link yearly targets to the main data set in QlikView. The issue is that - In the 1st picture, you can see that the sum of target for Name=A for 2018 is 6. However, in the main data set (picture 2) there is no Code for Plant =A &amp;amp; Group = S, M. Hence, the respective targets are not considered in QlikView.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found 2 solutions on community:&lt;/P&gt;&lt;P&gt;1. &lt;A href="https://community.qlik.com/t5/QlikView-Creating-Analytics/sales-vs-targets-giving-wrong-target-values/td-p/401887" target="_blank"&gt;Concatenate&lt;/A&gt;&amp;nbsp;: This doesn't work because the actual date is connected to the calendar,&amp;nbsp; whereas the targets are on yearly basis&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Sales-Vs-Targets/td-p/660629" target="_blank"&gt;Add Dummy data&lt;/A&gt;: It is not possible for me to add dummy data based on missing Codes because it is dynamic&lt;/P&gt;&lt;P&gt;Any other idea how I can make this work? Attaching a Sample QVW.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Target1.PNG" style="width: 341px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2411i241B82FC9BC1EE7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Target1.PNG" alt="Target1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Target2.PNG" style="width: 359px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2410iB8D0BC82406174F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Target2.PNG" alt="Target2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522489#M737487</guid>
      <dc:creator>divya_anand</dc:creator>
      <dc:date>2024-11-16T21:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly Target values not mapped to Fact table</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522498#M737488</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;Have you tried a join.&lt;BR /&gt;&lt;BR /&gt;LOAD * from table1;&lt;BR /&gt;&lt;BR /&gt;join&lt;BR /&gt;&lt;BR /&gt;LOAD * from table2;&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 19 Dec 2018 09:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522498#M737488</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2018-12-19T09:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly Target values not mapped to Fact table</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522559#M737489</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried "Join", it still isn't picking up all the target values. I have attached a sample QVW in my question for your reference.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 11:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522559#M737489</guid>
      <dc:creator>divya_anand</dc:creator>
      <dc:date>2018-12-19T11:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly Target values not mapped to Fact table</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522568#M737491</link>
      <description>&lt;P&gt;May be using a link table&lt;/P&gt;&lt;PRE&gt;Data:
LOAD Name,
	 Group,
	 Code,
	 Name&amp;amp;'|'&amp;amp;Group&amp;amp;'|'&amp;amp;Date#(Date,'DD/MM/YYYY') as Key,
	 Num(Date#(Date,'DD/MM/YYYY')) as %Date;
LOAD * INLINE [
    Name, Group, Code, Date
    A, K, 308, 15/1/2018
    A, K, 309, 26/2/2018
    A, K, 314, 18/2/2018
    A, K, 493, 16/3/2018
    B, K, 494, 25/1/2018
    B, K, 496, 13/1/2018
    B, K, 497, 17/3/2018
    C, M, 316, 27/4/2018
    C, M, 490, 20/2/2018
    C, S, 306, 13/1/2018
    A, K, 202, 18/8/2017
    C, S, 209, 22/8/2017
];

Target:
LOAD Name&amp;amp;'|'&amp;amp;Group&amp;amp;'|'&amp;amp;Year as Key,
	 Name,
	 Group,
	 Year,
	 Target;
LOAD * INLINE [
    Name, Group, Year, Target
    A, K, 2018, 1
    A, S, 2018, 2
    A, M, 2018, 3
    B, K, 2018, 2
    B, S, 2018, 1
    B, M, 2018, 1
    C, K, 2018, 2
    C, S, 2018, 3
    C, M, 2018, 4
    A, K, 2017, 1
    A, S, 2017, 2
    A, M, 2017, 3
    C, K, 2017, 2
    C, S, 2017, 2
    C, M, 2017, 3
];

LinkTable:
LOAD Name,
	 Group,
	 %Date,
	 Key
Resident Data;

Concatenate (LinkTable)
LOAD Name,
	 Group,
	 MakeDate(Year) as %Date,
	 Key
Resident Target;

DROP Fields Name, Group, %Date from Data;
DROP Fields Name, Group, Year from Target;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Dec 2018 12:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522568#M737491</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-19T12:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly Target values not mapped to Fact table</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522625#M737492</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;This should work. I am trying to implement this logic on my production report, I will get back to you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 15:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522625#M737492</guid>
      <dc:creator>divya_anand</dc:creator>
      <dc:date>2018-12-19T15:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly Target values not mapped to Fact table</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522843#M737494</link>
      <description>Hi Sunny,&lt;BR /&gt;Works well, thank you very much.</description>
      <pubDate>Thu, 20 Dec 2018 07:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Target-values-not-mapped-to-Fact-table/m-p/1522843#M737494</guid>
      <dc:creator>divya_anand</dc:creator>
      <dc:date>2018-12-20T07:03:59Z</dc:date>
    </item>
  </channel>
</rss>

