<?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 Applying Historic Table to Monthly Report Data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Applying-Historic-Table-to-Monthly-Report-Data/m-p/1706688#M54180</link>
    <description>&lt;P&gt;I have a difficult conundrum:&lt;/P&gt;&lt;P&gt;I have monthly report of account info with a &lt;EM&gt;Report Period&lt;/EM&gt;&amp;nbsp; of Jan 2020, Feb 2020 etc.&lt;BR /&gt;(representing end of month snapshot)&lt;/P&gt;&lt;P&gt;I have another table that keeps a history of overrides to those accounts, including override type (A, B,C) and date of override.&amp;nbsp; these overrides can occur from zero to n number of times a month, so not necessarily every month.&lt;/P&gt;&lt;P&gt;I need to be able to show the&amp;nbsp;&lt;EM&gt;current&amp;nbsp;&lt;/EM&gt;override type for a given report period selection.&lt;/P&gt;&lt;P&gt;If no selection is made, the latest override would be shown, if a selection is made, the max override date and value within that selection would be shown in my pivot table.&lt;/P&gt;&lt;P&gt;History table&lt;/P&gt;&lt;TABLE border="1" width="100.187265917603%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Account&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Override Date&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Override type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;101&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2/2/2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;101&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2/23/2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;102&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;1/1/2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;TD&gt;3/2/2020&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;TD&gt;12/12/2019&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Account table (includes report date, but date is not in pivot)&amp;nbsp; Solution must respect Report Date selection&lt;/P&gt;&lt;P&gt;If no selection is made, max values are shown from history&lt;/P&gt;&lt;TABLE border="1" width="44.41677044416771%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Account&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Current Override Code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;101&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;102&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;103&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Feb 2020 is selected, values would be:&lt;/P&gt;&lt;TABLE border="1" width="44.41677044416771%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Account&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Current Override Code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;101&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;102&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;103&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:17:20 GMT</pubDate>
    <dc:creator>tschullo</dc:creator>
    <dc:date>2024-11-16T02:17:20Z</dc:date>
    <item>
      <title>Applying Historic Table to Monthly Report Data</title>
      <link>https://community.qlik.com/t5/App-Development/Applying-Historic-Table-to-Monthly-Report-Data/m-p/1706688#M54180</link>
      <description>&lt;P&gt;I have a difficult conundrum:&lt;/P&gt;&lt;P&gt;I have monthly report of account info with a &lt;EM&gt;Report Period&lt;/EM&gt;&amp;nbsp; of Jan 2020, Feb 2020 etc.&lt;BR /&gt;(representing end of month snapshot)&lt;/P&gt;&lt;P&gt;I have another table that keeps a history of overrides to those accounts, including override type (A, B,C) and date of override.&amp;nbsp; these overrides can occur from zero to n number of times a month, so not necessarily every month.&lt;/P&gt;&lt;P&gt;I need to be able to show the&amp;nbsp;&lt;EM&gt;current&amp;nbsp;&lt;/EM&gt;override type for a given report period selection.&lt;/P&gt;&lt;P&gt;If no selection is made, the latest override would be shown, if a selection is made, the max override date and value within that selection would be shown in my pivot table.&lt;/P&gt;&lt;P&gt;History table&lt;/P&gt;&lt;TABLE border="1" width="100.187265917603%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Account&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;Override Date&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Override type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;101&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2/2/2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;101&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2/23/2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;102&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;1/1/2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;TD&gt;3/2/2020&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;TD&gt;12/12/2019&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Account table (includes report date, but date is not in pivot)&amp;nbsp; Solution must respect Report Date selection&lt;/P&gt;&lt;P&gt;If no selection is made, max values are shown from history&lt;/P&gt;&lt;TABLE border="1" width="44.41677044416771%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Account&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Current Override Code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;101&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;102&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;103&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Feb 2020 is selected, values would be:&lt;/P&gt;&lt;TABLE border="1" width="44.41677044416771%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Account&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Current Override Code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;101&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;102&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;103&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Applying-Historic-Table-to-Monthly-Report-Data/m-p/1706688#M54180</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2024-11-16T02:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Applying Historic Table to Monthly Report Data</title>
      <link>https://community.qlik.com/t5/App-Development/Applying-Historic-Table-to-Monthly-Report-Data/m-p/1708581#M54368</link>
      <description>&lt;P&gt;Hi Tschullo,&lt;/P&gt;&lt;P&gt;You can use &lt;SPAN&gt;FirstSortedValue function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="script_token"&gt;FirstSortedValue (&lt;/SPAN&gt;[&amp;nbsp;&lt;SPAN class="script_token"&gt;distinct&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;&amp;nbsp;] value, sort-weight [, rank ]&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FirstSortedValue("Override type",-"Override Date")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sort-weight is ascending order by default, to turn it into descending just put minus sign before the field.&lt;/P&gt;&lt;P&gt;To show/hide "Override Date", you can write GetSelectedCount(YourReportPeriodField)=0 in "show column if " property in dimension/measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 14:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Applying-Historic-Table-to-Monthly-Report-Data/m-p/1708581#M54368</guid>
      <dc:creator>SerhanKaraer</dc:creator>
      <dc:date>2020-06-05T14:15:29Z</dc:date>
    </item>
  </channel>
</rss>

