<?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: Weekly Visit Count by Cardholder and Location in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Weekly-Visit-Count-by-Cardholder-and-Location/m-p/1958986#M79054</link>
    <description>&lt;P&gt;This helps getting closer...&amp;nbsp; I can see who is in what day, how many days in a week.&amp;nbsp; But the counts are not aggregating properly.&amp;nbsp; They all should fall into 1x or more, 4 of them should be 2x or more, 3 of them should be 3x or more.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlcimino_0-1658414786098.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84785i72128FDAB1236FB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlcimino_0-1658414786098.png" alt="carlcimino_0-1658414786098.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;aggr dimension expression:&lt;/P&gt;
&lt;P&gt;=aggr(if($(v_Full_Week_Swipes)&amp;gt;=3,'3x or More',&lt;BR /&gt;if($(v_Full_Week_Swipes)&amp;gt;=2,'2x or More',&lt;BR /&gt;if($(v_Full_Week_Swipes)&amp;gt;=1,'1x or More'))),[Location Description],WeekRefDate,[Badge Number])&lt;/P&gt;
&lt;P&gt;v_Full_Week_Swipes = the sum of the following.&lt;/P&gt;
&lt;TABLE width="935"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="935"&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Mon'}&amp;gt;} distinct [Badge Number])&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Tue'}&amp;gt;} distinct [Badge Number])&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Wed'}&amp;gt;} distinct [Badge Number])&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Thu'}&amp;gt;} distinct [Badge Number])&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Fri'}&amp;gt;} distinct [Badge Number])&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure expression:&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Mon','Tue','Wed','Thu','Fri'}&amp;gt;} distinct [Badge Number])&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 14:50:24 GMT</pubDate>
    <dc:creator>carlcimino</dc:creator>
    <dc:date>2022-07-21T14:50:24Z</dc:date>
    <item>
      <title>Weekly Visit Count by Cardholder and Location</title>
      <link>https://community.qlik.com/t5/App-Development/Weekly-Visit-Count-by-Cardholder-and-Location/m-p/1955489#M78787</link>
      <description>&lt;P&gt;Hello, I have some sample data and am having difficulty rolling up.&amp;nbsp; The data has Location, Cardholder, Date of Visit, WeekRefDate (this is datestart("Date of Visit"), WeekYear.&amp;nbsp; What I want to know is by Location how many Cardholders have visited the office at least once, twice, three+ times.&lt;/P&gt;
&lt;P&gt;I can get the total cardholder visits using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;sum(aggr(Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'}&amp;gt;} distinct [Cardholder]),WeekRefDate,[Location]))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;but I can't seem to figure out how to group it based on the Cardholder visiting 1 or more, 2 or more or 3+ times in that week.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlcimino_0-1657760238679.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84103i9A5CBD48810B5A32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlcimino_0-1657760238679.png" alt="carlcimino_0-1657760238679.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any guidance or suggestions would be much appreciated!&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 01:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weekly-Visit-Count-by-Cardholder-and-Location/m-p/1955489#M78787</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2022-07-14T01:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Visit Count by Cardholder and Location</title>
      <link>https://community.qlik.com/t5/App-Development/Weekly-Visit-Count-by-Cardholder-and-Location/m-p/1955599#M78800</link>
      <description>&lt;P&gt;Refer the solution I posted here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/How-to-find-No-of-associates-visited-office-in-a-week/td-p/1955516" target="_blank"&gt;https://community.qlik.com/t5/App-Development/How-to-find-No-of-associates-visited-office-in-a-week/td-p/1955516&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 07:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weekly-Visit-Count-by-Cardholder-and-Location/m-p/1955599#M78800</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-07-14T07:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Visit Count by Cardholder and Location</title>
      <link>https://community.qlik.com/t5/App-Development/Weekly-Visit-Count-by-Cardholder-and-Location/m-p/1955917#M78821</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2751"&gt;@vinieme12&lt;/a&gt;&amp;nbsp; thanks for the suggestion.&amp;nbsp; that is really close to what I am looking for.&amp;nbsp; The difference is I want the left hand column to be the office that the visit was made in not the week.&amp;nbsp; So for a given week selected I want to see the by office performance of # of visits.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlcimino_0-1657806286000.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84197i8B37D099C44F7339/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlcimino_0-1657806286000.png" alt="carlcimino_0-1657806286000.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;WeekRefDate serves the same purpose as IsoWeek in your aggr I believe.&amp;nbsp; I tried this based on your post but I only get Once.&amp;nbsp; Any ideas?&amp;nbsp; Really appreciate the help feel like we're getting close!&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=aggr(if(Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'}&amp;gt;} distinct [Cardholder])=1,'Once',&lt;BR /&gt;if(Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'}&amp;gt;} distinct [Cardholder])=2,'Twice',&lt;BR /&gt;if(Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'}&amp;gt;} distinct [Cardholder])=3,'Thrice',&lt;BR /&gt;if(Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'}&amp;gt;} distinct [Cardholder])=4,'Four Times',&lt;BR /&gt;if(Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'}&amp;gt;} distinct [Cardholder])=5,'Every Day'))))),WeekRefDate,[Cardholder])&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlcimino_1-1657806345220.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84198i77DBAAA2B34A9E2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlcimino_1-1657806345220.png" alt="carlcimino_1-1657806345220.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 14:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weekly-Visit-Count-by-Cardholder-and-Location/m-p/1955917#M78821</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2022-07-14T14:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Visit Count by Cardholder and Location</title>
      <link>https://community.qlik.com/t5/App-Development/Weekly-Visit-Count-by-Cardholder-and-Location/m-p/1956283#M78840</link>
      <description>&lt;P&gt;As below&lt;/P&gt;
&lt;P&gt;=aggr(if(count(Cardholder)=1,'Once',&lt;BR /&gt;if(count(Cardholder)=2,'Twice',&lt;BR /&gt;if(count(Cardholder)=3,'Thrice',&lt;BR /&gt;if(count(Cardholder)=4,'Four Times',&lt;BR /&gt;if(count(Cardholder)=5,'Five Times',&lt;BR /&gt;if(count(Cardholder)=6,'6 Times',&lt;BR /&gt;if(count(Cardholder)=7,'Everyday'))))))),Location,WeekRefDate,Cardholder)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 07:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weekly-Visit-Count-by-Cardholder-and-Location/m-p/1956283#M78840</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-07-15T07:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Visit Count by Cardholder and Location</title>
      <link>https://community.qlik.com/t5/App-Development/Weekly-Visit-Count-by-Cardholder-and-Location/m-p/1958986#M79054</link>
      <description>&lt;P&gt;This helps getting closer...&amp;nbsp; I can see who is in what day, how many days in a week.&amp;nbsp; But the counts are not aggregating properly.&amp;nbsp; They all should fall into 1x or more, 4 of them should be 2x or more, 3 of them should be 3x or more.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlcimino_0-1658414786098.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84785i72128FDAB1236FB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlcimino_0-1658414786098.png" alt="carlcimino_0-1658414786098.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;aggr dimension expression:&lt;/P&gt;
&lt;P&gt;=aggr(if($(v_Full_Week_Swipes)&amp;gt;=3,'3x or More',&lt;BR /&gt;if($(v_Full_Week_Swipes)&amp;gt;=2,'2x or More',&lt;BR /&gt;if($(v_Full_Week_Swipes)&amp;gt;=1,'1x or More'))),[Location Description],WeekRefDate,[Badge Number])&lt;/P&gt;
&lt;P&gt;v_Full_Week_Swipes = the sum of the following.&lt;/P&gt;
&lt;TABLE width="935"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="935"&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Mon'}&amp;gt;} distinct [Badge Number])&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Tue'}&amp;gt;} distinct [Badge Number])&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Wed'}&amp;gt;} distinct [Badge Number])&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Thu'}&amp;gt;} distinct [Badge Number])&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Fri'}&amp;gt;} distinct [Badge Number])&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure expression:&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;WeekYear={'$(vMaxWeekSelect)'},WeekDay={'Mon','Tue','Wed','Thu','Fri'}&amp;gt;} distinct [Badge Number])&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 14:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weekly-Visit-Count-by-Cardholder-and-Location/m-p/1958986#M79054</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2022-07-21T14:50:24Z</dc:date>
    </item>
  </channel>
</rss>

