<?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 Show valid row for date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-valid-row-for-date/m-p/1015721#M925269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I cannot find a solution to this scenario.&lt;/P&gt;&lt;P&gt;I have a table with product code, supplier code, date, percentual 1, percentual 2, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;|code|supplier|date|perc1|perc2|&lt;/P&gt;&lt;P&gt;|1|A001|20090303|100|0|&lt;/P&gt;&lt;P&gt;|1|B001|20090303|0|100|&lt;/P&gt;&lt;P&gt;|2|C001|20160501|0|95|&lt;/P&gt;&lt;P&gt;|2|C001|20160501|100|5|&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have a straight (or pivot) table with dimensions code and supplier, then a variable (vMyDate, for example 20160630) where I can specify a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perc1 is the percentual in use in the period previous to date (-1), and perc2 is the percentual in use in the period after the date.&lt;/P&gt;&lt;P&gt;So I must see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;with vMyDate = 20160412:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;|1|B001|20090303|0|100|&lt;/P&gt;&lt;P&gt;|2|C001|20160501|100|5|&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with vMyDate = 20160630:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;|1|B001|20090303|0|100|&lt;/P&gt;&lt;P&gt;|2|C001|20160501|0|95|&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me to understand how I can build it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Mike &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>mike_spada</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Show valid row for date</title>
      <link>https://community.qlik.com/t5/QlikView/Show-valid-row-for-date/m-p/1015721#M925269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I cannot find a solution to this scenario.&lt;/P&gt;&lt;P&gt;I have a table with product code, supplier code, date, percentual 1, percentual 2, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;|code|supplier|date|perc1|perc2|&lt;/P&gt;&lt;P&gt;|1|A001|20090303|100|0|&lt;/P&gt;&lt;P&gt;|1|B001|20090303|0|100|&lt;/P&gt;&lt;P&gt;|2|C001|20160501|0|95|&lt;/P&gt;&lt;P&gt;|2|C001|20160501|100|5|&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have a straight (or pivot) table with dimensions code and supplier, then a variable (vMyDate, for example 20160630) where I can specify a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perc1 is the percentual in use in the period previous to date (-1), and perc2 is the percentual in use in the period after the date.&lt;/P&gt;&lt;P&gt;So I must see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;with vMyDate = 20160412:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;|1|B001|20090303|0|100|&lt;/P&gt;&lt;P&gt;|2|C001|20160501|100|5|&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with vMyDate = 20160630:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;|1|B001|20090303|0|100|&lt;/P&gt;&lt;P&gt;|2|C001|20160501|0|95|&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me to understand how I can build it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Mike &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-valid-row-for-date/m-p/1015721#M925269</guid>
      <dc:creator>mike_spada</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show valid row for date</title>
      <link>https://community.qlik.com/t5/QlikView/Show-valid-row-for-date/m-p/1015722#M925270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not 100% sure I understand your setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which record is to take if you have multiple records per code on the same date, both showing values for e.g. perc2?&lt;/P&gt;&lt;P&gt;Why are you chosing &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;|2|C001|20160501|0|95| in your example for vMyDate = 20160630?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2960"&gt;Creating a Date Interval from a Single Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and try frist to create distinct intervals per code with the percentage value you want to apply to that interval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 14:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-valid-row-for-date/m-p/1015722#M925270</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-12T14:42:38Z</dc:date>
    </item>
  </channel>
</rss>

