<?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 Generic date with conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generic-date-with-conditions/m-p/1534410#M439036</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem which I cant find a solution to which I hope you can help me with.&lt;/P&gt;&lt;P&gt;I have a financial qlikview report which has a datamodel with fact table on invoice level, each row shows several dates - invoicedate, paiddate, paymentbatch date. The facttable also has a flag showing invoicetype (Open, Paid).&lt;/P&gt;&lt;P&gt;Request is to create a&amp;nbsp;new Report Date which should have conditions:&lt;/P&gt;&lt;P&gt;If InvoiceType = OP, then PaymentBatchDate &amp;lt;= ReportDate&lt;/P&gt;&lt;P&gt;If InvoiceType = PP, then InvoiceDate &amp;lt;= ReportDate and PaidDate&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;=ReportDate&lt;/P&gt;&lt;P&gt;I have created a DateLink table with the different date fields and connected it to a Master Calender, so I have a generic Date which we can call ReportDate. The problem I face is how I can apply the conditions to this Report Date? I tried with set analysis, but do not get it to work. I would prefer to create the conditions at script level so I can apply time relative measures on Report Date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 11:54:40 GMT</pubDate>
    <dc:creator>MagnusS</dc:creator>
    <dc:date>2019-01-24T11:54:40Z</dc:date>
    <item>
      <title>Generic date with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Generic-date-with-conditions/m-p/1534410#M439036</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem which I cant find a solution to which I hope you can help me with.&lt;/P&gt;&lt;P&gt;I have a financial qlikview report which has a datamodel with fact table on invoice level, each row shows several dates - invoicedate, paiddate, paymentbatch date. The facttable also has a flag showing invoicetype (Open, Paid).&lt;/P&gt;&lt;P&gt;Request is to create a&amp;nbsp;new Report Date which should have conditions:&lt;/P&gt;&lt;P&gt;If InvoiceType = OP, then PaymentBatchDate &amp;lt;= ReportDate&lt;/P&gt;&lt;P&gt;If InvoiceType = PP, then InvoiceDate &amp;lt;= ReportDate and PaidDate&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;=ReportDate&lt;/P&gt;&lt;P&gt;I have created a DateLink table with the different date fields and connected it to a Master Calender, so I have a generic Date which we can call ReportDate. The problem I face is how I can apply the conditions to this Report Date? I tried with set analysis, but do not get it to work. I would prefer to create the conditions at script level so I can apply time relative measures on Report Date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 11:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generic-date-with-conditions/m-p/1534410#M439036</guid>
      <dc:creator>MagnusS</dc:creator>
      <dc:date>2019-01-24T11:54:40Z</dc:date>
    </item>
  </channel>
</rss>

