<?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: Restricting to first visit in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766446#M59288</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77079"&gt;@aswinnar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide the sample data and expected output. so that, its help to understand better.&lt;/P&gt;</description>
    <pubDate>Sat, 05 Dec 2020 05:47:08 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2020-12-05T05:47:08Z</dc:date>
    <item>
      <title>Restricting to first visit</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766217#M59264</link>
      <description>&lt;P&gt;I have a requirement where I need to show a graph of the number of new visits per month for a study&lt;/P&gt;&lt;P&gt;So for a Study A, for visits we have to use the visit types which are shown as:&lt;/P&gt;&lt;P&gt;V0&amp;nbsp;&lt;/P&gt;&lt;P&gt;V1&lt;/P&gt;&lt;P&gt;V2&lt;/P&gt;&lt;P&gt;V3&lt;/P&gt;&lt;P&gt;V4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;V0 for example would be the new visits that I am needing to use for my chart. Other studies have different visit types for new visits like T0, or V1. What expression can I use to show the count of the first visit type?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, for study A if I take count of v0 for Jan I should get 24, but with the expression that I am using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;visittype={$(=min(visittype))}&amp;gt;}visittype)&lt;/P&gt;&lt;P&gt;I am getting 0, not 24. Is there something wrong with the expression that I am using?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766217#M59264</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2024-11-16T17:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting to first visit</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766224#M59265</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77079"&gt;@aswinnar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;V0, V1 is the string. so you can try with Minstring()&amp;nbsp; function&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Count({$&amp;lt;visittype={'$(=Minstring(visittype))'}&amp;gt;}visittype)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Create a flag or dual function to calculate it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 08:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766224#M59265</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-12-04T08:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting to first visit</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766442#M59287</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That seems to be working, however when applying to my line chart instead of showing multiple lines for each study I am only getting one line now. Is there a reason for this? If I filter for each one they show, and if I use an expression such as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Count({$&amp;lt;visittype+={'$(=Minstring(visittype))'}&amp;gt;}visittype)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All the lines for the studies show, but not the case for the expression you gave. Any reason why?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 05:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766442#M59287</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2020-12-05T05:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting to first visit</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766446#M59288</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77079"&gt;@aswinnar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide the sample data and expected output. so that, its help to understand better.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 05:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766446#M59288</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-12-05T05:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting to first visit</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766456#M59290</link>
      <description>&lt;P&gt;Thanks for the information keep sharing&lt;FONT color="#333333"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;A href="https://www.mygiftcardsite.one/" target="_self"&gt;&lt;FONT color="#333333"&gt;MyGiftCardSite&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 10:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766456#M59290</guid>
      <dc:creator>Stone544</dc:creator>
      <dc:date>2020-12-09T10:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting to first visit</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766467#M59291</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PFA excel file containing sample data that I am using for the graph&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a multi line chart based on&amp;nbsp;new visits per month for a study. The line graph should show multiple lines, for each study. The issue I had come across was implementing the logic to get the min visits (new visits), using the expression&amp;nbsp;&lt;SPAN&gt;Count({$&amp;lt;visittype+={'$(=Minstring(visittype))'}&amp;gt;}visittype)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using that expression, I am only getting a single line, the other lines for the other studies are not showing up.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the line chart I am also using an aggregated dimension for visit date, as we are showing new visits over 2020 for different studies&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The calculated dimension is:&amp;nbsp;=aggr(only({&amp;lt;Visit_Date ={"*2020"}&amp;gt;} Visit_Date),Visit_Date)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me know if you are needing any more details&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 12:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766467#M59291</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2020-12-05T12:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting to first visit</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766531#M59300</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77079"&gt;@aswinnar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to add study as Dimension to display multiple lines for study in line chart&lt;/P&gt;&lt;P&gt;like below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1607226348911.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45294iFCB457D9619A2175/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1607226348911.png" alt="MayilVahanan_0-1607226348911.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 03:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766531#M59300</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-12-06T03:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting to first visit</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766534#M59301</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown in the screenshots I have added Study as a dimension in the qlik linechart, but I am still only getting the one line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something else that I am doing wrong? Or is it a Qlik Sense bug? I have also tried with the vizlib linechart extension and am encountering the same issue&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2020 06:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766534#M59301</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2020-12-06T06:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting to first visit</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766582#M59304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had told you the wrong expression,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count({$&amp;lt;visittype={'$(=Minstring(visittype))'}&amp;gt;}visittype) as the measure, which is causing me problems.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Whenever I use&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Count({$&amp;lt;visittype+={'$(=Minstring(visittype))'}&amp;gt;}visittype) it is working but I am needing to create chart for&amp;nbsp;Count({$&amp;lt;visittype={'$(=Minstring(visittype))'}&amp;gt;}visittype), so that is should show for only the new visits, not for all the visits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 01:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766582#M59304</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2020-12-07T01:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting to first visit</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766611#M59307</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77079"&gt;@aswinnar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For sample data, can you say the expected output?&lt;/P&gt;&lt;P&gt;meanwhile, you can try like below also&lt;/P&gt;&lt;P&gt;Sum(Aggr(if(visittype = MinString(Total&amp;lt;STUDY&amp;gt; visittype), 1), STUDY, Visit_Date, visittype))&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 07:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766611#M59307</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-12-07T07:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting to first visit</title>
      <link>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766622#M59309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached an excel sheet of the expected values for the visitytpe for 2020 only, as that is what we are needing for the requirement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the issue might be with the expression itself as I have tried with other expressions and I am getting all the studies in the line chart. It seems only with this expression it is causing error with the chart, though the expression is yielding the correct results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried your expression and I am getting straight lines for all studies.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate all the help so far, thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 08:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restricting-to-first-visit/m-p/1766622#M59309</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2020-12-07T08:18:27Z</dc:date>
    </item>
  </channel>
</rss>

