<?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 Count If Sum Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-If-Sum-Analysis/m-p/2094090#M89657</link>
    <description>&lt;P&gt;I have a data table that looks something like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;TABLE border="1" width="97.92682926829268%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;UserID&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;status&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;show&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;year&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;month&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;type&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Registered&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;A&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2023&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Jan&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Movie&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Registered&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;A&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2023&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Jan&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Movie&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;Registered&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;A&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;2023&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;Jan&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;Movie&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="40px"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD height="40px"&gt;Registered&lt;/TD&gt;
&lt;TD height="40px"&gt;B&lt;/TD&gt;
&lt;TD height="40px"&gt;2023&lt;/TD&gt;
&lt;TD height="40px"&gt;Feb&lt;/TD&gt;
&lt;TD height="40px"&gt;Live&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="40px"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD height="40px"&gt;Attended&lt;/TD&gt;
&lt;TD height="40px"&gt;B&lt;/TD&gt;
&lt;TD height="40px"&gt;2023&lt;/TD&gt;
&lt;TD height="40px"&gt;Feb&lt;/TD&gt;
&lt;TD height="40px"&gt;Live&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="39px"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD height="39px"&gt;Registered&lt;/TD&gt;
&lt;TD height="39px"&gt;C&lt;/TD&gt;
&lt;TD height="39px"&gt;2023&lt;/TD&gt;
&lt;TD height="39px"&gt;Jan&lt;/TD&gt;
&lt;TD height="39px"&gt;Performance&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="40px"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD height="40px"&gt;Registered&lt;/TD&gt;
&lt;TD height="40px"&gt;D&lt;/TD&gt;
&lt;TD height="40px"&gt;2023&lt;/TD&gt;
&lt;TD height="40px"&gt;Feb&lt;/TD&gt;
&lt;TD height="40px"&gt;Screening&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;I have created filter panes for status, year, and month&lt;BR /&gt;&lt;BR /&gt;I need to create a chart that displays the summation on unique IDs who registered or attended the shows in 2023, and by each month&lt;BR /&gt;&lt;BR /&gt;So for this data,&lt;BR /&gt;&lt;BR /&gt;[A]&lt;BR /&gt;I want to see the result like&lt;BR /&gt;2023 - Jan -&amp;gt;&amp;nbsp;&lt;BR /&gt;Users who registered for 1 show: 2&lt;BR /&gt;Users who registered for 2 shows: 1&lt;BR /&gt;&lt;BR /&gt;2023 - Feb -&amp;gt;&lt;BR /&gt;Users who registered for 1 show: 0&lt;BR /&gt;Users who attended 1 show: 1&lt;BR /&gt;Users who registered for 2 shows: 1&lt;BR /&gt;&lt;BR /&gt;I have tried this expression in the measure, but it is returning me the total value&lt;BR /&gt;Count((Aggr(If(Sum(status) =1, 'registered','attended'),ID)))&lt;BR /&gt;&lt;BR /&gt;Is there an expression I can use to get the data I want above in [A]?&lt;BR /&gt;&lt;BR /&gt;Also is there an expression to tell if the user is new in year after a grouping by expression? Like if the unique user exists only in this month and this year, flag out the userid as a new user?&lt;BR /&gt;&lt;BR /&gt;I am new to qlik and I have not been able to find comprehensive tutorials on the functions and expression usage of qlik.&lt;/P&gt;</description>
    <pubDate>Sun, 16 Jul 2023 11:07:41 GMT</pubDate>
    <dc:creator>hamster-samster</dc:creator>
    <dc:date>2023-07-16T11:07:41Z</dc:date>
    <item>
      <title>Count If Sum Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-If-Sum-Analysis/m-p/2094090#M89657</link>
      <description>&lt;P&gt;I have a data table that looks something like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;TABLE border="1" width="97.92682926829268%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;UserID&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;status&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;show&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;year&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;month&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;type&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Registered&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;A&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2023&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Jan&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Movie&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Registered&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;A&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2023&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Jan&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Movie&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;Registered&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;A&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;2023&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;Jan&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;Movie&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="40px"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD height="40px"&gt;Registered&lt;/TD&gt;
&lt;TD height="40px"&gt;B&lt;/TD&gt;
&lt;TD height="40px"&gt;2023&lt;/TD&gt;
&lt;TD height="40px"&gt;Feb&lt;/TD&gt;
&lt;TD height="40px"&gt;Live&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="40px"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD height="40px"&gt;Attended&lt;/TD&gt;
&lt;TD height="40px"&gt;B&lt;/TD&gt;
&lt;TD height="40px"&gt;2023&lt;/TD&gt;
&lt;TD height="40px"&gt;Feb&lt;/TD&gt;
&lt;TD height="40px"&gt;Live&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="39px"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD height="39px"&gt;Registered&lt;/TD&gt;
&lt;TD height="39px"&gt;C&lt;/TD&gt;
&lt;TD height="39px"&gt;2023&lt;/TD&gt;
&lt;TD height="39px"&gt;Jan&lt;/TD&gt;
&lt;TD height="39px"&gt;Performance&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="40px"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD height="40px"&gt;Registered&lt;/TD&gt;
&lt;TD height="40px"&gt;D&lt;/TD&gt;
&lt;TD height="40px"&gt;2023&lt;/TD&gt;
&lt;TD height="40px"&gt;Feb&lt;/TD&gt;
&lt;TD height="40px"&gt;Screening&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;I have created filter panes for status, year, and month&lt;BR /&gt;&lt;BR /&gt;I need to create a chart that displays the summation on unique IDs who registered or attended the shows in 2023, and by each month&lt;BR /&gt;&lt;BR /&gt;So for this data,&lt;BR /&gt;&lt;BR /&gt;[A]&lt;BR /&gt;I want to see the result like&lt;BR /&gt;2023 - Jan -&amp;gt;&amp;nbsp;&lt;BR /&gt;Users who registered for 1 show: 2&lt;BR /&gt;Users who registered for 2 shows: 1&lt;BR /&gt;&lt;BR /&gt;2023 - Feb -&amp;gt;&lt;BR /&gt;Users who registered for 1 show: 0&lt;BR /&gt;Users who attended 1 show: 1&lt;BR /&gt;Users who registered for 2 shows: 1&lt;BR /&gt;&lt;BR /&gt;I have tried this expression in the measure, but it is returning me the total value&lt;BR /&gt;Count((Aggr(If(Sum(status) =1, 'registered','attended'),ID)))&lt;BR /&gt;&lt;BR /&gt;Is there an expression I can use to get the data I want above in [A]?&lt;BR /&gt;&lt;BR /&gt;Also is there an expression to tell if the user is new in year after a grouping by expression? Like if the unique user exists only in this month and this year, flag out the userid as a new user?&lt;BR /&gt;&lt;BR /&gt;I am new to qlik and I have not been able to find comprehensive tutorials on the functions and expression usage of qlik.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2023 11:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-If-Sum-Analysis/m-p/2094090#M89657</guid>
      <dc:creator>hamster-samster</dc:creator>
      <dc:date>2023-07-16T11:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Sum Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-If-Sum-Analysis/m-p/2094546#M89684</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;I was able to reach the results you wanted by creating a calculated dimension with the following expression:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Users Registered per Show =&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;aggr(&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Count({&amp;lt;status={'Registered'}&amp;gt;} UserID)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;,UserID,month)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Then I&amp;nbsp; could create a table like this, using this new dimension and a Count (DISTINCT UserID) as a measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="calculated_dim.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112435i2D9478248261CE1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="calculated_dim.png" alt="calculated_dim.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;Please let me know if it helps.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 18:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-If-Sum-Analysis/m-p/2094546#M89684</guid>
      <dc:creator>mageste</dc:creator>
      <dc:date>2023-07-17T18:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Sum Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-If-Sum-Analysis/m-p/2095134#M89726</link>
      <description>&lt;P&gt;Thank you. It worked perfectly&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 06:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-If-Sum-Analysis/m-p/2095134#M89726</guid>
      <dc:creator>hamster-samster</dc:creator>
      <dc:date>2023-07-19T06:21:15Z</dc:date>
    </item>
  </channel>
</rss>

