<?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: What's the best way to do this... in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473164#M99849</link>
    <description>&lt;P&gt;Hi Ruben,&lt;/P&gt;
&lt;P&gt;Thanks very much for the reply, can you please elaborate a little more for me on the script solution?&lt;/P&gt;
&lt;P&gt;I'm not too sure what you mean and I'm struggling to put it into practice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a simple example script that joins my two tables as it currently is in the app, can you have a look and let me know how you would make the changes please?&lt;/P&gt;
&lt;P&gt;Really appreciate your reply, thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2024 09:07:38 GMT</pubDate>
    <dc:creator>samvile18</dc:creator>
    <dc:date>2024-07-26T09:07:38Z</dc:date>
    <item>
      <title>What's the best way to do this...</title>
      <link>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2472950#M99827</link>
      <description>&lt;P&gt;...I'm trying to find the best way to count the amount of logins from my Logins table where the date is between the campaign date and 30 days after it. My data layout looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samvile18_0-1721907087700.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169922iC4F4506F73FF9FAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samvile18_0-1721907087700.png" alt="samvile18_0-1721907087700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It's joined by %Master_Id but I'm getting a bit stuck with getting the set analysis to work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 11:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2472950#M99827</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2024-07-25T11:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: What's the best way to do this...</title>
      <link>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473027#M99832</link>
      <description>&lt;P&gt;Hi, I think it will be better if you flag those records on script, you can do a join or a mapping the check each Login Date with the correspondig CampaignDate to create a binary field, then the expression could be as simple as:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;isIn30Days={1}&amp;gt;} [# of Logins])&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 15:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473027#M99832</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-07-25T15:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: What's the best way to do this...</title>
      <link>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473164#M99849</link>
      <description>&lt;P&gt;Hi Ruben,&lt;/P&gt;
&lt;P&gt;Thanks very much for the reply, can you please elaborate a little more for me on the script solution?&lt;/P&gt;
&lt;P&gt;I'm not too sure what you mean and I'm struggling to put it into practice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a simple example script that joins my two tables as it currently is in the app, can you have a look and let me know how you would make the changes please?&lt;/P&gt;
&lt;P&gt;Really appreciate your reply, thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 09:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473164#M99849</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2024-07-26T09:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: What's the best way to do this...</title>
      <link>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473175#M99850</link>
      <description>&lt;P&gt;Hi, if you alrady have the join I think you only need:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Logins:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;NoConcatenate&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Load&lt;/SPAN&gt; &lt;SPAN&gt;*,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;If("Login Date"-CampaignDate&amp;lt;=30,1,0) as isLoginIn30Days&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Resident&lt;/SPAN&gt;&lt;SPAN&gt; LoginsTemp&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;order by&lt;/SPAN&gt;&lt;SPAN&gt; %Master_Id&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;"Login Date"&lt;/SPAN&gt; &lt;SPAN&gt;desc&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;You can add simple table with [Login Date], CampaignDate as isLoginIn30Days fields to check the flag.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Jul 2024 09:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473175#M99850</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-07-26T09:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: What's the best way to do this...</title>
      <link>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473192#M99851</link>
      <description>&lt;P&gt;I don't think I was clear enough - the tables aren't joined together, they're linked my %Master_Id...you mentioned a mapping, how would that work?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's what the table layout looks like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samvile18_0-1721988582660.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169968i28FD7931085B7223/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samvile18_0-1721988582660.png" alt="samvile18_0-1721988582660.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 10:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473192#M99851</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2024-07-26T10:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: What's the best way to do this...</title>
      <link>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473194#M99852</link>
      <description>&lt;P&gt;Right, it was a left keep, somewhat I read left join.&lt;/P&gt;
&lt;P&gt;The mapping table could be created as:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;mapCampaignDate:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Mapping LOAD&lt;/SPAN&gt;&lt;SPAN&gt; %Master_Id&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; CampaignDate &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Resident&lt;/SPAN&gt;&lt;SPAN&gt; CampaignContacts&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;And then apply in the logins table as:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;If&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Login Date"&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'mapCampaignDate'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;%Master_Id)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; isLoginIn30Days&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Jul 2024 10:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473194#M99852</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-07-26T10:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: What's the best way to do this...</title>
      <link>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473247#M99868</link>
      <description>&lt;P&gt;This is incredibly close - thank you very much, I think I have some fine tuning to do in terms of max dates etc but this is definitely along the right lines.&lt;/P&gt;
&lt;P&gt;Thanks for taking the time to have a look&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 13:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-s-the-best-way-to-do-this/m-p/2473247#M99868</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2024-07-26T13:53:15Z</dc:date>
    </item>
  </channel>
</rss>

