<?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 Using correct data selected by date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-correct-data-selected-by-date/m-p/229050#M81017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So your periods are actually intended to be full years? I'd just link things up using the data model.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Rates:&lt;BR /&gt;LOAD&lt;BR /&gt; date(Year,'YYYY') as Year&lt;BR /&gt;,Transport_Cost_Rate&lt;BR /&gt;INLINE [&lt;BR /&gt;Year, Transport_Cost_Rate&lt;BR /&gt;01/01/2010, 0.01&lt;BR /&gt;01/01/2011, 0.02&lt;BR /&gt;];&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Calendar:&lt;BR /&gt;LOAD&lt;BR /&gt; Date&lt;BR /&gt;,date(yearstart(Date),'YYYY') as Year&lt;BR /&gt;... other date-related fields ...&lt;BR /&gt;from whatever source of dates you're using for your calendar&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Now the date from your invoice links to the date in the calendar, giving you the year, which links to the year in the rates table, which gives you your transport cost rate. QlikView does all of that association automatically, so your simple multiplication should now work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2011 01:56:22 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-02-25T01:56:22Z</dc:date>
    <item>
      <title>Using correct data selected by date</title>
      <link>https://community.qlik.com/t5/QlikView/Using-correct-data-selected-by-date/m-p/229049#M81016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;BR /&gt;i have a problem finding the correct formula to make that funcion:&lt;/P&gt;&lt;P&gt;That are the data i have for each invoice:&lt;BR /&gt;&lt;BR /&gt;Field: "Customer" ; "date" ; "Sales" ; "Cost"&lt;/P&gt;&lt;P&gt;then i load an Inline Table like this:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Period, Transport_Cost_Rate&lt;BR /&gt;01/01/2010, 0.01&lt;BR /&gt;01/01/2011, 0.02&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Now for calculating the net margin i have to calculate the exact transport cost by this formula "Sales" * "Trasport_Cost_Rate" , but i can't do it because i can't select the correct rate related to the same year of the domument ("date")&lt;/P&gt;&lt;P&gt;Can you help me using the correct formula for Qlik ?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 16:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-correct-data-selected-by-date/m-p/229049#M81016</guid>
      <dc:creator />
      <dc:date>2011-02-24T16:21:56Z</dc:date>
    </item>
    <item>
      <title>Using correct data selected by date</title>
      <link>https://community.qlik.com/t5/QlikView/Using-correct-data-selected-by-date/m-p/229050#M81017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So your periods are actually intended to be full years? I'd just link things up using the data model.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Rates:&lt;BR /&gt;LOAD&lt;BR /&gt; date(Year,'YYYY') as Year&lt;BR /&gt;,Transport_Cost_Rate&lt;BR /&gt;INLINE [&lt;BR /&gt;Year, Transport_Cost_Rate&lt;BR /&gt;01/01/2010, 0.01&lt;BR /&gt;01/01/2011, 0.02&lt;BR /&gt;];&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Calendar:&lt;BR /&gt;LOAD&lt;BR /&gt; Date&lt;BR /&gt;,date(yearstart(Date),'YYYY') as Year&lt;BR /&gt;... other date-related fields ...&lt;BR /&gt;from whatever source of dates you're using for your calendar&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Now the date from your invoice links to the date in the calendar, giving you the year, which links to the year in the rates table, which gives you your transport cost rate. QlikView does all of that association automatically, so your simple multiplication should now work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 01:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-correct-data-selected-by-date/m-p/229050#M81017</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-02-25T01:56:22Z</dc:date>
    </item>
    <item>
      <title>Using correct data selected by date</title>
      <link>https://community.qlik.com/t5/QlikView/Using-correct-data-selected-by-date/m-p/229051#M81018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer ,&lt;/P&gt;&lt;P&gt;you understand my request.&lt;/P&gt;&lt;P&gt;I will modify my load script to use the year link for the transport_Cost_Rate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 10:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-correct-data-selected-by-date/m-p/229051#M81018</guid>
      <dc:creator />
      <dc:date>2011-02-25T10:11:16Z</dc:date>
    </item>
  </channel>
</rss>

