<?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: Issue with sales and Target values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158882#M377795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go for concatenation.&lt;/P&gt;&lt;P&gt;Concat 2 tables based common fields it will concatenate.&lt;/P&gt;&lt;P&gt;Create one custom field say 'TransFlag' in both table&lt;/P&gt;&lt;P&gt;I believe fields for both the tables will be,&lt;/P&gt;&lt;P&gt;Sales :&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136775_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Target ;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/136776_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression you can put&lt;/P&gt;&lt;P&gt;For sales : {&amp;lt;TransFlag={'Actual']&amp;gt;}&lt;/P&gt;&lt;P&gt;For Target: {&amp;lt;TransFlag={'Target']&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2016 04:39:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-08T04:39:59Z</dc:date>
    <item>
      <title>Issue with sales and Target values</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158879#M377792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have two tables in my data model, 1 which contains the Sales Information and the other with Target information.&lt;/P&gt;&lt;P&gt;in Sales table the data will be on daily basis whereas in target file the target is on Monthly basis.&lt;/P&gt;&lt;P&gt;Apart from that i have Product info also in my target file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have create a straight table with Product as Dimension and Actual and Target as Expressions,without selection it would display latest month data and based on selection of month and year it should change accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made a composite key with Product and Month and have linked the two tables Sales and Target. The value are coming as expected though i have one issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whenever there is no "Product" in Actual table the target will not be visible as i have made a Key using both product and Month.&lt;/P&gt;&lt;P&gt;I have to display the Target even if there is no Actual Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i achieve the same?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Reena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 11:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158879#M377792</guid>
      <dc:creator />
      <dc:date>2016-09-07T11:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sales and Target values</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158880#M377793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a master calendar covering both your sales and budget numbers?&amp;nbsp; If so you can then group all sales, by dealer, region etc against target/budget, using for example Month-Year as your dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a number of reports like this, they work really well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dermot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 11:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158880#M377793</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2016-09-07T11:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sales and Target values</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158881#M377794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dermot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a master calendar to which Actual table is linked based on Date.&lt;/P&gt;&lt;P&gt;If possible can you please share an example .My dimension in straight table would be the product and expressions..sales and target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Reena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 04:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158881#M377794</guid>
      <dc:creator />
      <dc:date>2016-09-08T04:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sales and Target values</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158882#M377795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go for concatenation.&lt;/P&gt;&lt;P&gt;Concat 2 tables based common fields it will concatenate.&lt;/P&gt;&lt;P&gt;Create one custom field say 'TransFlag' in both table&lt;/P&gt;&lt;P&gt;I believe fields for both the tables will be,&lt;/P&gt;&lt;P&gt;Sales :&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136775_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Target ;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/136776_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression you can put&lt;/P&gt;&lt;P&gt;For sales : {&amp;lt;TransFlag={'Actual']&amp;gt;}&lt;/P&gt;&lt;P&gt;For Target: {&amp;lt;TransFlag={'Target']&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 04:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158882#M377795</guid>
      <dc:creator />
      <dc:date>2016-09-08T04:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sales and Target values</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158883#M377796</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;You should use the Link Table or the concatenate option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I feel because the granularity of both table is not same, you should use the link table option to get the data from Target table which is currently missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 06:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158883#M377796</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-09-08T06:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sales and Target values</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158884#M377797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok So load your sales data and target data in the same table using something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Month(DATE) &amp;lt;= Month(Today());&amp;nbsp; or say where less than or equal to max(SalesDate) etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My master calendar is as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempSalesOrderMinMax:&lt;BR /&gt;Load min(SalesDate) as MinDate,&lt;BR /&gt;&amp;nbsp; max(KPIDateID) as MaxDate&lt;BR /&gt;Resident [SALES_DATA]&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Let vStartDate= Peek('MinDate'); &lt;BR /&gt;Let vEndDate=Peek('MaxDate');&lt;BR /&gt;Let vNumDays=vEndDate-vStartDate+1;&lt;/P&gt;&lt;P&gt;drop table TempSalesOrderMinMax;&lt;/P&gt;&lt;P&gt;SalesCalendar:&lt;BR /&gt;Load&lt;BR /&gt; TempDate as KPIDateID,&lt;BR /&gt; Date(TempDate) As Date,&lt;BR /&gt; Year(TempDate) As Year,&lt;BR /&gt; Month(TempDate) &amp;amp; '-' &amp;amp; Year(TempDate) As MONTH_YEAR,&lt;BR /&gt; Month(TempDate) As Month,&lt;BR /&gt; Num(Month(TempDate)) As Month#,&lt;BR /&gt; 'Q' &amp;amp; Ceil(Month(TempDate)/3) as Quarter,&lt;BR /&gt; 'Q' &amp;amp; Ceil(Month(TempDate)/3) &amp;amp; '-' &amp;amp; Year(TempDate) As Q_YEAR,&lt;BR /&gt; NetWorkDays(TempDate,TempDate) as NetworkDay_Flag,&lt;BR /&gt; Day(TempDate) As Day,&lt;BR /&gt; Week(TempDate) As Week,&lt;BR /&gt; WeekDay(TempDate) As WeekDay,&lt;BR /&gt; if(((Year(TempDate) &amp;lt;= Year($(vEndDate))-1) And (Month(TempDate) &amp;lt;= Month($(vEndDate))) Or Year(TempDate) = Year($(vEndDate))),'YTD','ROY') as YTD_Flag&lt;BR /&gt;// if((Date(TempDate) &amp;gt;= Yearstart(Today()) AND Date(TempDate) &amp;lt;= Today()) OR (Date(TempDate) &amp;gt;= YearStart(AddMonths(Today(),-12)) AND Date(TempDate) &amp;lt;= addmonths(Today(),-12)),'YTD','ROY') as YTD_Flag&lt;BR /&gt;// -YearToDate(TempDate, 0, 1) As YTD_Flag,&lt;BR /&gt;// -YearToDate(TempDate, -1, 1) As LYTD_Flag&lt;/P&gt;&lt;P&gt;; &lt;BR /&gt;Load&lt;BR /&gt; $(vStartDate)+RecNo()-1 As TempDate&lt;BR /&gt;AutoGenerate($(vNumDays));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 08:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158884#M377797</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2016-09-08T08:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sales and Target values</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158885#M377798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reena,&lt;/P&gt;&lt;P&gt;Maybe you can get some inspiration from a video with a similar problem, detailed data vs. aggregated data.&lt;/P&gt;&lt;P&gt;Power of Qlik Script - Reshaping Data Part 2. I know that the video is for Qlik Sense, but the scripting is the same for QlikView. It is colse to the end of the video where it shows how to handle the aggregated data in combination with the detailed data.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8232"&gt;Power of Qlik Script - Reshaping Data - Part 2 (video)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Finn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-sales-and-Target-values/m-p/1158885#M377798</guid>
      <dc:creator />
      <dc:date>2016-09-27T17:19:24Z</dc:date>
    </item>
  </channel>
</rss>

