<?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 Suggestions for reducing rows in order to show Opening and Closing base in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Suggestions-for-reducing-rows-in-order-to-show-Opening-and/m-p/1932126#M76808</link>
    <description>&lt;P&gt;We have an App which contains around 200M rows. It represents total number of customers we have at the end of each month. We need to create a view showing Opening Count, movements within the month like addition deletion and then Closing count for each month&lt;/P&gt;
&lt;TABLE border="1" width="97.93046115443445%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;March&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;April&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;Opening&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;4000&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;3900&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;Addition&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;500&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;300&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Deletion&lt;/TD&gt;
&lt;TD&gt;600&lt;/TD&gt;
&lt;TD&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;Closing&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;3900&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;4100&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem - We are currently duplicating the numbers of rows by loading the same Closing month file and increasing the date by 1 to make it as Opening count for next month.&amp;nbsp;Is their any smarter way of implementing so that we can reduce the number of rows?&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 04:36:28 GMT</pubDate>
    <dc:creator>sandeepgather</dc:creator>
    <dc:date>2022-05-18T04:36:28Z</dc:date>
    <item>
      <title>Suggestions for reducing rows in order to show Opening and Closing base</title>
      <link>https://community.qlik.com/t5/App-Development/Suggestions-for-reducing-rows-in-order-to-show-Opening-and/m-p/1932126#M76808</link>
      <description>&lt;P&gt;We have an App which contains around 200M rows. It represents total number of customers we have at the end of each month. We need to create a view showing Opening Count, movements within the month like addition deletion and then Closing count for each month&lt;/P&gt;
&lt;TABLE border="1" width="97.93046115443445%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;March&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;April&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;Opening&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;4000&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;3900&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;Addition&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;500&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;300&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Deletion&lt;/TD&gt;
&lt;TD&gt;600&lt;/TD&gt;
&lt;TD&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;Closing&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;3900&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;4100&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem - We are currently duplicating the numbers of rows by loading the same Closing month file and increasing the date by 1 to make it as Opening count for next month.&amp;nbsp;Is their any smarter way of implementing so that we can reduce the number of rows?&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 04:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Suggestions-for-reducing-rows-in-order-to-show-Opening-and/m-p/1932126#M76808</guid>
      <dc:creator>sandeepgather</dc:creator>
      <dc:date>2022-05-18T04:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions for reducing rows in order to show Opening and Closing base</title>
      <link>https://community.qlik.com/t5/App-Development/Suggestions-for-reducing-rows-in-order-to-show-Opening-and/m-p/1932152#M76810</link>
      <description>&lt;P&gt;There's absolutely no need to duplicate the data&lt;/P&gt;
&lt;P&gt;Just create a date bridge to link the monthend date to also associate is a opening date for next month&lt;/P&gt;
&lt;P&gt;In charts refer to the Datetype field when doing calculations&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Opening&lt;/STRONG&gt;:&amp;nbsp; count({&amp;lt;DateType={'Opening'}&amp;gt;}CustomerID)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Closing&lt;/STRONG&gt; :&amp;nbsp;count({&amp;lt;DateType={'Closing'}&amp;gt;}CustomerID)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Difference&lt;/STRONG&gt;:&amp;nbsp;&amp;nbsp;count({&amp;lt;DateType={'Opening'}&amp;gt;}CustomerID)-count({&amp;lt;DateType={'Closing'}&amp;gt;}CustomerID)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;raw:&lt;BR /&gt;Load Date(MonthEnd) as MonthEnd,CustomerID Inline [&lt;BR /&gt;MonthEnd,CustomerID&lt;BR /&gt;2022-03-31,1&lt;BR /&gt;2022-03-31,2&lt;BR /&gt;2022-03-31,3&lt;BR /&gt;2022-03-31,4&lt;BR /&gt;2022-04-30,1&lt;BR /&gt;2022-04-30,2&lt;BR /&gt;2022-04-30,3&lt;BR /&gt;2022-04-30,4&lt;BR /&gt;2022-04-30,5&lt;BR /&gt;2022-04-30,6&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DateBridge:&lt;BR /&gt;Load Distinct MonthEnd&lt;BR /&gt;,MonthEnd as Date&lt;BR /&gt;, 'Closing' as DateType&lt;BR /&gt;resident raw;&lt;BR /&gt;Concatenate(DateBridge)&lt;BR /&gt;Load Distinct MonthEnd&lt;BR /&gt;, Date(MonthEnd+1) as Date&lt;BR /&gt;, 'Opening' as DateType resident raw;&lt;/P&gt;
&lt;P&gt;MasterCalendar: &lt;BR /&gt;Load &lt;BR /&gt;TempDate AS Date, &lt;BR /&gt;week(TempDate) As Week, &lt;BR /&gt;Year(TempDate) As Year, &lt;BR /&gt;Month(TempDate) As Month, &lt;BR /&gt;Day(TempDate) As Day, &lt;BR /&gt;'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter, &lt;BR /&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear, &lt;BR /&gt;WeekDay(TempDate) as WeekDay &lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;//=== Generate a temp table of dates === &lt;BR /&gt;LOAD &lt;BR /&gt;date(mindate + IterNo()) AS TempDate&lt;BR /&gt;,maxdate // Used in InYearToDate() above, but not kept &lt;BR /&gt;WHILE mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;
&lt;P&gt;//=== Get min/max dates from Field ===/&lt;BR /&gt;LOAD&lt;BR /&gt;min(FieldValue('Date', recno()))-1 as mindate,&lt;BR /&gt;max(FieldValue('Date', recno())) as maxdate&lt;BR /&gt;AUTOGENERATE FieldValueCount('Date');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;EM&gt;Post an appropriate sample data in excel , if you need more clarity&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 05:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Suggestions-for-reducing-rows-in-order-to-show-Opening-and/m-p/1932152#M76810</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-18T05:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions for reducing rows in order to show Opening and Closing base</title>
      <link>https://community.qlik.com/t5/App-Development/Suggestions-for-reducing-rows-in-order-to-show-Opening-and/m-p/1932159#M76811</link>
      <description>&lt;P&gt;Just create a bridge table to link the month end date to next month opening date&lt;/P&gt;
&lt;P&gt;In charts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Opening:&amp;nbsp;&amp;nbsp;count({&amp;lt;DateType={'Opening'}&amp;gt;}CustomerID)&lt;/P&gt;
&lt;P&gt;Closing:&amp;nbsp;count({&amp;lt;DateType={'Closing'}&amp;gt;}CustomerID)&lt;/P&gt;
&lt;P&gt;Difference:&amp;nbsp;count({&amp;lt;DateType={'Opening'}&amp;gt;}CustomerID)-count({&amp;lt;DateType={'Closing'}&amp;gt;}CustomerID)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;raw:&lt;BR /&gt;Load Date(MonthEnd) as MonthEnd,CustomerID Inline [&lt;BR /&gt;MonthEnd,CustomerID&lt;BR /&gt;2022-03-31,1&lt;BR /&gt;2022-03-31,2&lt;BR /&gt;2022-03-31,3&lt;BR /&gt;2022-03-31,4&lt;BR /&gt;2022-04-30,1&lt;BR /&gt;2022-04-30,2&lt;BR /&gt;2022-04-30,3&lt;BR /&gt;2022-04-30,4&lt;BR /&gt;2022-04-30,5&lt;BR /&gt;2022-04-30,6&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DateBridge:&lt;BR /&gt;Load Distinct MonthEnd&lt;BR /&gt;,MonthEnd as Date&lt;BR /&gt;, 'Closing' as DateType&lt;BR /&gt;resident raw;&lt;BR /&gt;Concatenate(DateBridge)&lt;BR /&gt;Load Distinct MonthEnd&lt;BR /&gt;, Date(MonthEnd+1) as Date&lt;BR /&gt;, 'Opening' as DateType resident raw;&lt;/P&gt;
&lt;P&gt;MasterCalendar: &lt;BR /&gt;Load &lt;BR /&gt;TempDate AS Date, &lt;BR /&gt;week(TempDate) As Week, &lt;BR /&gt;Year(TempDate) As Year, &lt;BR /&gt;Month(TempDate) As Month, &lt;BR /&gt;Day(TempDate) As Day, &lt;BR /&gt;'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter, &lt;BR /&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear, &lt;BR /&gt;WeekDay(TempDate) as WeekDay &lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;//=== Generate a temp table of dates === &lt;BR /&gt;LOAD &lt;BR /&gt;date(mindate + IterNo()) AS TempDate&lt;BR /&gt;,maxdate // Used in InYearToDate() above, but not kept &lt;BR /&gt;WHILE mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;
&lt;P&gt;//=== Get min/max dates from Field ===/&lt;BR /&gt;LOAD&lt;BR /&gt;min(FieldValue('Date', recno()))-1 as mindate,&lt;BR /&gt;max(FieldValue('Date', recno())) as maxdate&lt;BR /&gt;AUTOGENERATE FieldValueCount('Date');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;exit script;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post some sample data in excel that best represents your actual data ; if you need more clarity&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 05:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Suggestions-for-reducing-rows-in-order-to-show-Opening-and/m-p/1932159#M76811</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-18T05:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions for reducing rows in order to show Opening and Closing base</title>
      <link>https://community.qlik.com/t5/App-Development/Suggestions-for-reducing-rows-in-order-to-show-Opening-and/m-p/1932234#M76814</link>
      <description>&lt;P&gt;You can simply create a bridge table that links one month end date to&amp;nbsp; &amp;nbsp;a monthend and monthstart date&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please post some sample data&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 07:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Suggestions-for-reducing-rows-in-order-to-show-Opening-and/m-p/1932234#M76814</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-18T07:38:45Z</dc:date>
    </item>
  </channel>
</rss>

