<?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 Re: Row Count Macros  not working  in Straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1733412#M721098</link>
    <description>&lt;P&gt;Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;Since the column selection is dynamic, I need to calculate row count every time any column is selected or deselected and multiple tables are involved here hence not able to consider the primary key column to the count.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 12:32:20 GMT</pubDate>
    <dc:creator>RaoPS</dc:creator>
    <dc:date>2020-08-05T12:32:20Z</dc:date>
    <item>
      <title>Row Count Macros  not working  in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1733147#M721096</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have created a macro which will count the number of rows in the straight table.&amp;nbsp;&lt;BR /&gt;But when the straight table is having "calculation condition"&amp;nbsp; feature set, this macro won't give the proper result.&lt;BR /&gt;When I remove the&amp;nbsp;&amp;nbsp;"calculation condition" feature,&amp;nbsp; macro is working fine.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Straight table without condition : Macros used in Caption giving the right count : 50336&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Without 50k rows &amp;amp;31 column condition.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38520iE83500911B8A2904/image-size/large?v=v2&amp;amp;px=999" role="button" title="Without 50k rows &amp;amp;31 column condition.png" alt="Without 50k rows &amp;amp;31 column condition.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Straight Table condition:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="calculation Condition.png" style="width: 686px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38521iA6FEA0EC978B31E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="calculation Condition.png" alt="calculation Condition.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;After&amp;nbsp; selecting rows greater than 50k with the condition : Here Macro still works fine at caption showing 50336&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50k rows &amp;amp;31 column condition .png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38522i6A7C82F66A2B7B2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="50k rows &amp;amp;31 column condition .png" alt="50k rows &amp;amp;31 column condition .png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;After performing the above step, now If I select something which has less than 50k records macros gets updated to 1&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50k rows &amp;amp;31 column 2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38523i5BB23772677EA183/image-size/large?v=v2&amp;amp;px=999" role="button" title="50k rows &amp;amp;31 column 2.png" alt="50k rows &amp;amp;31 column 2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This occurs only when the condition is applied.&lt;BR /&gt;Can anyone help me with this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1733147#M721096</guid>
      <dc:creator>RaoPS</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Macros  not working  in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1733210#M721097</link>
      <description>&lt;P&gt;Why do you need a macro to do this calculation?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 16:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1733210#M721097</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-08-04T16:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Macros  not working  in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1733412#M721098</link>
      <description>&lt;P&gt;Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;Since the column selection is dynamic, I need to calculate row count every time any column is selected or deselected and multiple tables are involved here hence not able to consider the primary key column to the count.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 12:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1733412#M721098</guid>
      <dc:creator>RaoPS</dc:creator>
      <dc:date>2020-08-05T12:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Macros  not working  in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1733507#M721099</link>
      <description>&lt;P&gt;I have a feeling that this can be done without a macro, but I won't really know unless I see it&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 15:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1733507#M721099</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-08-05T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Macros  not working  in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1733717#M721100</link>
      <description>&lt;P&gt;I agree with Sunny that there might be other solutions than a macro to get this count, maybe with an approach like the following:&lt;/P&gt;&lt;P&gt;count(distinct $(='[' &amp;amp; concat(DimensionsListbox, ']&amp;amp;[') &amp;amp; ']'))&lt;/P&gt;&lt;P&gt;It exact logic and syntax depends on the way how the dynamic approach is implemented but because of the fact that the user-selection of those selections/variables is used to control the visibility and calculations in the object - they could be also used to calculate the number of rows in it.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 11:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1733717#M721100</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-08-06T11:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Macros  not working  in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1734297#M721101</link>
      <description>&lt;P&gt;Please find below one of the scenarios for which row count is calculated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example.png" style="width: 489px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38746i9EA1E09EE1DD330D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example.png" alt="Example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And my requirement involves multiple columns and tables.&lt;BR /&gt;There are many such scenarios involved with multiple tables and to calculate row count on any primary key is complicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 11:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1734297#M721101</guid>
      <dc:creator>RaoPS</dc:creator>
      <dc:date>2020-08-08T11:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Macros  not working  in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1734306#M721102</link>
      <description>&lt;P&gt;I don't think you need macro here.&amp;nbsp; But calculation will really depend on your dimension and expression. In your above example what is expression?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 13:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1734306#M721102</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-08T13:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Macros  not working  in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1734450#M721103</link>
      <description>&lt;P&gt;Do you have multiple tables or do you have one table where you dynamically allow your users to select dimension? If it is later, then do you allow this using a list box to pick dimensions? All we need to understand is your setup... because essentially you can create a Sum(Aggr(Count()...)) function based on selection of your list box to figure out which dimensions do you have and use them in Aggr() function.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 11:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1734450#M721103</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-08-10T11:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Row Count Macros  not working  in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1736874#M721104</link>
      <description>&lt;P&gt;So I want to say I agree with the other posters on this one, macros should be the last resort when doing things in QlikView, and it seems they have some other ways of doing things, so my advice would be to follow up on those and see if one of them will work or provide the additional info they requested to try to help you further.&amp;nbsp; If you really want to stick with the macro, the issue here is going to be one of timing, and you are going to need to use the WaitForIdle API call at the start of the macro most likely in order to ensure that timing is such that the calculation condition fully runs prior to the macro trying to do things, that would be the only potential solution for the macro issue I believe.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 18:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-Count-Macros-not-working-in-Straight-table/m-p/1736874#M721104</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-08-18T18:51:38Z</dc:date>
    </item>
  </channel>
</rss>

