<?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 Days/Weeks and Total in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447508#M97759</link>
    <description>&lt;P&gt;I have daily office visit data and a weekly census for that location.&amp;nbsp; How would I do the following?&amp;nbsp; I'm thinking I need to use a Total function but it doesn't seem to work.&lt;/P&gt;
&lt;P&gt;Visits Syntax:&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;Year={$(yearselect)},Source-={'PSHR'},[Location Description]-={'Work From Home'},[Pay Status]={'Active'},Visit_Swipe={0}&amp;gt;} distinct [Employee ID])&lt;/P&gt;
&lt;P&gt;Assigned Seats Measure Syntax:&lt;/P&gt;
&lt;P&gt;Count( {&amp;lt;Year={$(yearselect)},Source={'PSHR'},[Location Description]-={'Work From Home'},[Pay Status]={'Active'}&amp;gt;} distinct [Employee ID])&lt;/P&gt;
&lt;P&gt;Attached some sample data for reference.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlcimino_0-1714590122774.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165206iDDFAFD1EDA3D2DDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlcimino_0-1714590122774.png" alt="carlcimino_0-1714590122774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 19:11:17 GMT</pubDate>
    <dc:creator>carlcimino</dc:creator>
    <dc:date>2024-05-01T19:11:17Z</dc:date>
    <item>
      <title>Days/Weeks and Total</title>
      <link>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447508#M97759</link>
      <description>&lt;P&gt;I have daily office visit data and a weekly census for that location.&amp;nbsp; How would I do the following?&amp;nbsp; I'm thinking I need to use a Total function but it doesn't seem to work.&lt;/P&gt;
&lt;P&gt;Visits Syntax:&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;Year={$(yearselect)},Source-={'PSHR'},[Location Description]-={'Work From Home'},[Pay Status]={'Active'},Visit_Swipe={0}&amp;gt;} distinct [Employee ID])&lt;/P&gt;
&lt;P&gt;Assigned Seats Measure Syntax:&lt;/P&gt;
&lt;P&gt;Count( {&amp;lt;Year={$(yearselect)},Source={'PSHR'},[Location Description]-={'Work From Home'},[Pay Status]={'Active'}&amp;gt;} distinct [Employee ID])&lt;/P&gt;
&lt;P&gt;Attached some sample data for reference.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlcimino_0-1714590122774.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165206iDDFAFD1EDA3D2DDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlcimino_0-1714590122774.png" alt="carlcimino_0-1714590122774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 19:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447508#M97759</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2024-05-01T19:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Days/Weeks and Total</title>
      <link>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447510#M97760</link>
      <description>&lt;P&gt;Can you add more context? What exactly is not working? What do you expect, what calculation? What are you getting instead?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 19:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447510#M97760</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-05-01T19:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Days/Weeks and Total</title>
      <link>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447515#M97761</link>
      <description>&lt;P&gt;When I add total to the expression...&lt;/P&gt;
&lt;P&gt;Count( total {&amp;lt;Year={$(yearselect)},Source={'PSHR'},[Location Description]-={'Work From Home'},[Pay Status]={'Active'}&amp;gt;} distinct [Employee ID])&lt;/P&gt;
&lt;P&gt;The same number is in the expected in office column across all the weeks.&amp;nbsp; I expect that number to be the census for that week but it returns something else.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlcimino_1-1714591631735.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165208iE9F12BE6762AABC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlcimino_1-1714591631735.png" alt="carlcimino_1-1714591631735.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 19:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447515#M97761</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2024-05-01T19:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Days/Weeks and Total</title>
      <link>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447533#M97762</link>
      <description>&lt;P&gt;I believe Aggr can help you. Try something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum(&lt;BR /&gt;Aggr(NoDistinct &lt;BR /&gt;Count({&amp;lt;Year={$(yearselect)},Source={'PSHR'},[Location Description]-={'Work From Home'},[Pay Status]={'Active'}&amp;gt;} distinct [Employee ID])&lt;BR /&gt;, [Local Description], Year, [Month Name], SwipeWeekStart&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 19:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447533#M97762</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-05-01T19:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Days/Weeks and Total</title>
      <link>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447536#M97763</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29224"&gt;@igoralcantara&lt;/a&gt;&amp;nbsp;thanks for your help that returns even more bizarre results.&amp;nbsp; i'll keep trying lmk if you think of anything else.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Sum( Aggr(NoDistinct Count({&amp;lt;Year={$(yearselect)},Source={'PSHR'},[Location Description]-={'Work From Home'},[Pay Status]={'Active'}&amp;gt;} distinct [Employee ID]) , [Location Description], Year, [Month Name], SwipeWeekStart ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlcimino_0-1714593910222.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165209i0D3CA8B589CB4DF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlcimino_0-1714593910222.png" alt="carlcimino_0-1714593910222.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 20:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447536#M97763</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2024-05-01T20:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Days/Weeks and Total</title>
      <link>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447539#M97764</link>
      <description>&lt;P&gt;As an exercise, use my expression but replace the Sum for a Max just to see what we get.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 20:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2447539#M97764</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-05-01T20:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Days/Weeks and Total</title>
      <link>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2448064#M97799</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29224"&gt;@igoralcantara&lt;/a&gt;&amp;nbsp;This and your other suggestion eventually led to the solution.&amp;nbsp; I switched it to be a weekly view but the concept is the same.&amp;nbsp; Thanks so much for your help!&lt;BR /&gt;&lt;BR /&gt;max(&lt;BR /&gt;Aggr(NoDistinct&lt;BR /&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},Source={'PSHR'},[Location Description]-={'Work From Home'},[Pay Status]={'Active'}&amp;gt;} distinct [Employee ID])&lt;BR /&gt;, [Location Description], SwipeWeekStart&lt;BR /&gt;))&lt;/P&gt;
&lt;DIV id="tinyMceEditor_6e47cd226a47fdcarlcimino_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlcimino_2-1714669038634.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165302i4F4DC47363D86AE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlcimino_2-1714669038634.png" alt="carlcimino_2-1714669038634.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 16:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2448064#M97799</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2024-05-02T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Days/Weeks and Total</title>
      <link>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2448070#M97800</link>
      <description>&lt;P&gt;Glad to hear!&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 17:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Days-Weeks-and-Total/m-p/2448070#M97800</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-05-02T17:34:38Z</dc:date>
    </item>
  </channel>
</rss>

