<?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: Set Expression Showing when a Member moves Bucket from a time frame in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490582#M101950</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/224074"&gt;@Noor51&lt;/a&gt;&amp;nbsp; Is the movement required from Q1 to Q2 or between any quarters?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2024 13:20:15 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2024-11-04T13:20:15Z</dc:date>
    <item>
      <title>Set Expression Showing when a Member moves Bucket from a time frame</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2489515#M101820</link>
      <description>&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to write a set expression to show when Member moves bucket between Q1-2024 and Q2-2024 in a table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is for Qlik sense on perm version May 2023.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I have so far&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If(&lt;BR /&gt;FirstSortedValue(&lt;BR /&gt;{&amp;lt;QuarterYear={'Q1-2024'}, [Class of Trade]={'ACUTE'}&amp;gt;} Bucket,&lt;BR /&gt;[Member]&lt;BR /&gt;) &amp;lt;&amp;gt; &lt;BR /&gt;FirstSortedValue(&lt;BR /&gt;{&amp;lt;QuarterYear={'Q2-2024'}, [Class of Trade]={'ACUTE '}&amp;gt;} Bucket,&lt;BR /&gt;[Member]&lt;BR /&gt;) and &lt;BR /&gt;Not IsNull(FirstSortedValue(&lt;BR /&gt;{&amp;lt;QuarterYear={'Q1-2024'}, [Class of Trade]={'ACUTE '}&amp;gt;} Bucket,&lt;BR /&gt;[Member]&lt;BR /&gt;)),&lt;BR /&gt;'Moved',&lt;BR /&gt;'No Change'&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Noor51_0-1730145845419.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173482i31954DAAC30E3E1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Noor51_0-1730145845419.png" alt="Noor51_0-1730145845419.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 13:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2489515#M101820</guid>
      <dc:creator>Noor51</dc:creator>
      <dc:date>2024-10-30T13:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Showing when a Member moves Bucket from a time frame</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2489588#M101828</link>
      <description>&lt;P&gt;please provide some sample data.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 07:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2489588#M101828</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-10-29T07:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Showing when a Member moves Bucket from a time frame</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2489699#M101846</link>
      <description>&lt;P&gt;Does this help as what data is in the fields?&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="206"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;Member&lt;/TD&gt;
&lt;TD width="78"&gt;QuarterYear&lt;/TD&gt;
&lt;TD width="64"&gt;Bucket&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;001 IL&lt;/TD&gt;
&lt;TD&gt;Q1-2024&lt;/TD&gt;
&lt;TD&gt;&amp;gt; 64 %&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;002 AZ&lt;/TD&gt;
&lt;TD&gt;Q2-2024&lt;/TD&gt;
&lt;TD&gt;65 - 74%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;003 WI&lt;/TD&gt;
&lt;TD&gt;Q3-2024&lt;/TD&gt;
&lt;TD&gt;75 - 84 %&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;004 NY&lt;/TD&gt;
&lt;TD&gt;Q1-2024&lt;/TD&gt;
&lt;TD&gt;85&amp;nbsp; - 90 %&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 29 Oct 2024 13:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2489699#M101846</guid>
      <dc:creator>Noor51</dc:creator>
      <dc:date>2024-10-29T13:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Showing when a Member moves Bucket from a time frame</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2489820#M101858</link>
      <description>&lt;P&gt;Hi just see only one bucket for each member. need some more rows with different buckets for different quarter and&amp;nbsp;&lt;SPAN&gt;[FK Member] field is missing too, need that field as i see you are comparing that field with Member field.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 05:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2489820#M101858</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-10-30T05:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Showing when a Member moves Bucket from a time frame</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2489962#M101875</link>
      <description>&lt;P&gt;The [FK Member] field should be just [Member] field. Here is a little bigger data set. Thanks for all your help.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="270px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;Member&lt;/TD&gt;
&lt;TD width="97.375px"&gt;QuarterYear&lt;/TD&gt;
&lt;TD width="102.338px"&gt;Bucket&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;001 IL&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q1-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;&amp;gt; 64 %&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;002 AZ&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q2-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;65 - 74%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;003 WI&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q3-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;75 - 84 %&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;004 NY&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q1-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;85&amp;nbsp; - 90 %&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;001 IL&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q2-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;85&amp;nbsp; - 90 %&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;002 AZ&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q1-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;75 - 84 %&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;003 WI&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q2-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;65 - 74%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;004 NY&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q2-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;&amp;gt; 64 %&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;005 OH&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q3-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;75 - 84 %&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;006 WY&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q2-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;65 - 74%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;005 OH&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q4-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;65 - 74%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="69.4875px"&gt;006 WY&lt;/TD&gt;
&lt;TD width="97.375px"&gt;Q3-2024&lt;/TD&gt;
&lt;TD width="102.338px"&gt;&amp;gt; 64 %&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 30 Oct 2024 13:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2489962#M101875</guid>
      <dc:creator>Noor51</dc:creator>
      <dc:date>2024-10-30T13:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Showing when a Member moves Bucket from a time frame</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490575#M101948</link>
      <description>&lt;P&gt;the order on UI should be same as that from the data you've provided? or like below is fine?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2489515 - Set Expression Showing when a Member moves Bucket from a time frame (1).PNG" style="width: 467px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173750iD390F1DA1B4F5391/image-size/large?v=v2&amp;amp;px=999" role="button" title="2489515 - Set Expression Showing when a Member moves Bucket from a time frame (1).PNG" alt="2489515 - Set Expression Showing when a Member moves Bucket from a time frame (1).PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure why you wanna hard code the QuarterYear and not make it dynamic?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 15:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490575#M101948</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-11-04T15:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Showing when a Member moves Bucket from a time frame</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490582#M101950</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/224074"&gt;@Noor51&lt;/a&gt;&amp;nbsp; Is the movement required from Q1 to Q2 or between any quarters?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 13:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490582#M101950</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-11-04T13:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Showing when a Member moves Bucket from a time frame</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490599#M101954</link>
      <description>&lt;P&gt;It just from Q1 to Q2&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 14:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490599#M101954</guid>
      <dc:creator>Noor51</dc:creator>
      <dc:date>2024-11-04T14:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Showing when a Member moves Bucket from a time frame</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490600#M101955</link>
      <description>&lt;P&gt;We get a raw data file from a vendor and that how they format it so we just use hard code. Thanks you for looking into this. I appreciate all your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 14:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490600#M101955</guid>
      <dc:creator>Noor51</dc:creator>
      <dc:date>2024-11-04T14:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Showing when a Member moves Bucket from a time frame</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490606#M101957</link>
      <description>&lt;P&gt;Try Below:&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;Load RowNo() as Sno, Member&amp;amp; '|'&amp;amp;QuarterYear as %Key,*;&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Member,QuarterYear,Bucket&amp;nbsp;&lt;BR /&gt;001 IL,Q1-2024,&amp;gt; 64 %&lt;BR /&gt;002 AZ,Q2-2024,65 - 74%&lt;BR /&gt;003 WI,Q3-2024,75 - 84 %&lt;BR /&gt;004 NY,Q1-2024,85&amp;nbsp; - 90 %&lt;BR /&gt;001 IL,Q2-2024,85&amp;nbsp; - 90 %&lt;BR /&gt;002 AZ,Q1-2024,75 - 84 %&lt;BR /&gt;003 WI,Q2-2024,65 - 74%&lt;BR /&gt;004 NY,Q2-2024,&amp;gt; 64 %&lt;BR /&gt;005 OH,Q3-2024,75 - 84 %&lt;BR /&gt;006 WY,Q2-2024,65 - 74%&lt;BR /&gt;005 OH,Q4-2024,65 - 74%&lt;BR /&gt;006 WY,Q3-2024,&amp;gt; 64 %&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;left join(Data)&lt;BR /&gt;Load %Key,&lt;BR /&gt;if(Member = Previous(Member) and QuarterYear = 'Q2-2024' and Previous(QuarterYear) = 'Q1-2024' and Bucket &amp;lt;&amp;gt; Previous(Bucket), 'Change', 'No Change') as Flag&lt;BR /&gt;;&lt;BR /&gt;Load * Resident Data&lt;BR /&gt;order by Member, QuarterYear;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2489515 - Set Expression Showing when a Member moves Bucket from a time frame (2).PNG" style="width: 488px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173757i06C2CF106DC7674F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2489515 - Set Expression Showing when a Member moves Bucket from a time frame (2).PNG" alt="2489515 - Set Expression Showing when a Member moves Bucket from a time frame (2).PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 16:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490606#M101957</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-11-04T16:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Showing when a Member moves Bucket from a time frame</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490616#M101960</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/224074"&gt;@Noor51&lt;/a&gt;&amp;nbsp; It is always better to do this kind of calculation in the script.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Data:
Load * Inline [
Member	QuarterYear	Bucket 
001 IL	Q1-2024	&amp;gt; 64 %
002 AZ	Q2-2024	65 - 74%
003 WI	Q3-2024	75 - 84 %
004 NY	Q1-2024	85  - 90 %
001 IL	Q2-2024	85  - 90 %
002 AZ	Q1-2024	75 - 84 %
003 WI	Q2-2024	65 - 74%
004 NY	Q2-2024	&amp;gt; 64 %
005 OH	Q3-2024	75 - 84 %
006 WY	Q2-2024	65 - 74%
005 OH	Q4-2024	65 - 74%
006 WY	Q3-2024	&amp;gt; 64 % ] (delimiter is '\t');

final:
Load *,
     if(Member=Previous(Member) and WildMatch(QuarterYear,'Q2*') and WildMatch(previous(QuarterYear),'Q1*')
      and Bucket&amp;lt;&amp;gt;Previous(Bucket),'Change','No Change') as Flag
Resident Data
Order by Member,QuarterYear;

Drop Table Data;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Nov 2024 15:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-Showing-when-a-Member-moves-Bucket-from-a-time/m-p/2490616#M101960</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-11-04T15:37:46Z</dc:date>
    </item>
  </channel>
</rss>

