<?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 Dynamically Displaying 0 Data Date on Chart via rolling-N month window. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamically-Displaying-0-Data-Date-on-Chart-via-rolling-N-month/m-p/2459384#M98713</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Need some help with my current issue&lt;BR /&gt;&lt;BR /&gt;Screenshot of default look of data that I have&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keitaru_0-1717578376672.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167385iB3B8B4833F62F941/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keitaru_0-1717578376672.png" alt="Keitaru_0-1717578376672.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;What I'm trying to achieve. Is to be able to show Future Dates via selection of MonthYr to display running 12 months data based on vMaxMonth&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I've Created a calculated table based off the data within my company's UAT server also Left Join another table to it based off the Master Cal attached Trade_count = 0 to MonthName.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TradeCount:
Load 	MonthName,
	order_contract_orderstatus 	AS Trade_Count_Status,
        OTC_FLAG 			AS T_OTC_FLAG,
        STP_FLAG			AS T_STP_FLAG,
	alt(count(ordercontractid),0) 	AS Trade_Count
Resident MVP1
Group by MonthName, order_contract_orderstatus, OTC_FLAG, STP_FLAG
Order by MonthName desc;

LEFT JOIN(TradeCount)

Future_Data:
Load  MonthName,
      0 As Trade_Count	
Resident Master_Cal;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;To get the table below&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;NoConcatenate
Final_Trade_Count:
Load	MonthName,
	Trade_Count_Status,
        T_OTC_FLAG,
        T_STP_FLAG,
	Trade_Count 
Resident TradeCount;
Drop Table TradeCount;&lt;/LI-CODE&gt;
&lt;P&gt;Where the table look some what like this&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keitaru_1-1717579299431.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167387i0A36C4C524CFA70E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keitaru_1-1717579299431.png" alt="Keitaru_1-1717579299431.png" /&gt;&lt;/span&gt;
&lt;P&gt;&lt;BR /&gt;Current Dynamic Rolling-N Month Chart script looks like this.&lt;/P&gt;
&lt;P&gt;alt(Sum( {1&amp;lt;Trade_Count_Status={'Settled'}, Date ={"&amp;gt;=$(=Date(AddMonths(vMaxMonth,-11),'DD/MM/YYYY')) &amp;lt;=$(=Date(AddMonths(vMaxMonth,0),'DD/MM/YYYY'))"}&amp;gt;} Trade_Count),sum({1&amp;lt; Date ={"&amp;gt;=$(=Date(AddMonths(vMaxMonth,-11),'DD/MM/YYYY')) &amp;lt;=$(=Date(AddMonths(vMaxMonth,0),'DD/MM/YYYY'))"}&amp;gt;} 0))&lt;/P&gt;
&lt;P&gt;vMaxMonth&amp;nbsp; =Date(max(order_contract_tradedate),'DD/MM/YYYY')&lt;BR /&gt;&lt;BR /&gt;When ever i select a MnthYr be it future or past data i get the following output:&lt;BR /&gt;Instead of showing me 12 month rolling period with 0 date Data showing and past month showing, nothing is being displayed.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keitaru_2-1717579696030.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167388i1F81FCF40FC46CAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keitaru_2-1717579696030.png" alt="Keitaru_2-1717579696030.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please Help.&lt;BR /&gt;As I'm on enterprise QS I cant share qvf due to security issues.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 05 Jun 2024 09:30:11 GMT</pubDate>
    <dc:creator>Keitaru</dc:creator>
    <dc:date>2024-06-05T09:30:11Z</dc:date>
    <item>
      <title>Dynamically Displaying 0 Data Date on Chart via rolling-N month window.</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-Displaying-0-Data-Date-on-Chart-via-rolling-N-month/m-p/2459384#M98713</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Need some help with my current issue&lt;BR /&gt;&lt;BR /&gt;Screenshot of default look of data that I have&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keitaru_0-1717578376672.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167385iB3B8B4833F62F941/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keitaru_0-1717578376672.png" alt="Keitaru_0-1717578376672.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;What I'm trying to achieve. Is to be able to show Future Dates via selection of MonthYr to display running 12 months data based on vMaxMonth&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I've Created a calculated table based off the data within my company's UAT server also Left Join another table to it based off the Master Cal attached Trade_count = 0 to MonthName.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TradeCount:
Load 	MonthName,
	order_contract_orderstatus 	AS Trade_Count_Status,
        OTC_FLAG 			AS T_OTC_FLAG,
        STP_FLAG			AS T_STP_FLAG,
	alt(count(ordercontractid),0) 	AS Trade_Count
Resident MVP1
Group by MonthName, order_contract_orderstatus, OTC_FLAG, STP_FLAG
Order by MonthName desc;

LEFT JOIN(TradeCount)

Future_Data:
Load  MonthName,
      0 As Trade_Count	
Resident Master_Cal;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;To get the table below&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;NoConcatenate
Final_Trade_Count:
Load	MonthName,
	Trade_Count_Status,
        T_OTC_FLAG,
        T_STP_FLAG,
	Trade_Count 
Resident TradeCount;
Drop Table TradeCount;&lt;/LI-CODE&gt;
&lt;P&gt;Where the table look some what like this&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keitaru_1-1717579299431.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167387i0A36C4C524CFA70E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keitaru_1-1717579299431.png" alt="Keitaru_1-1717579299431.png" /&gt;&lt;/span&gt;
&lt;P&gt;&lt;BR /&gt;Current Dynamic Rolling-N Month Chart script looks like this.&lt;/P&gt;
&lt;P&gt;alt(Sum( {1&amp;lt;Trade_Count_Status={'Settled'}, Date ={"&amp;gt;=$(=Date(AddMonths(vMaxMonth,-11),'DD/MM/YYYY')) &amp;lt;=$(=Date(AddMonths(vMaxMonth,0),'DD/MM/YYYY'))"}&amp;gt;} Trade_Count),sum({1&amp;lt; Date ={"&amp;gt;=$(=Date(AddMonths(vMaxMonth,-11),'DD/MM/YYYY')) &amp;lt;=$(=Date(AddMonths(vMaxMonth,0),'DD/MM/YYYY'))"}&amp;gt;} 0))&lt;/P&gt;
&lt;P&gt;vMaxMonth&amp;nbsp; =Date(max(order_contract_tradedate),'DD/MM/YYYY')&lt;BR /&gt;&lt;BR /&gt;When ever i select a MnthYr be it future or past data i get the following output:&lt;BR /&gt;Instead of showing me 12 month rolling period with 0 date Data showing and past month showing, nothing is being displayed.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keitaru_2-1717579696030.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167388i1F81FCF40FC46CAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keitaru_2-1717579696030.png" alt="Keitaru_2-1717579696030.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please Help.&lt;BR /&gt;As I'm on enterprise QS I cant share qvf due to security issues.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Jun 2024 09:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-Displaying-0-Data-Date-on-Chart-via-rolling-N-month/m-p/2459384#M98713</guid>
      <dc:creator>Keitaru</dc:creator>
      <dc:date>2024-06-05T09:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Displaying 0 Data Date on Chart via rolling-N month window.</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-Displaying-0-Data-Date-on-Chart-via-rolling-N-month/m-p/2459392#M98714</link>
      <description>&lt;P&gt;Manage to solve this on my own after changing the Date Tagging Logic.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 09:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-Displaying-0-Data-Date-on-Chart-via-rolling-N-month/m-p/2459392#M98714</guid>
      <dc:creator>Keitaru</dc:creator>
      <dc:date>2024-06-05T09:50:57Z</dc:date>
    </item>
  </channel>
</rss>

