<?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: Compare to values and show both Matchfound as Yes in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1811416#M66139</link>
    <description>&lt;P&gt;I would like to display/filter the materials which have the same Price and the same Text. Not only one of both.&amp;nbsp;&lt;BR /&gt;First the Group by was set to compare equal Price and equal Text, but if I filtered the equal Price, it showed the ones with different text as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore the Matchfound was set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Matchfound works, but I can't filter the equal materials because it only shows one as "Yes".&amp;nbsp;&lt;BR /&gt;Even if there are more equal materials.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to do at UI Level?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 15:11:48 GMT</pubDate>
    <dc:creator>Daniel1908</dc:creator>
    <dc:date>2021-05-28T15:11:48Z</dc:date>
    <item>
      <title>Compare to values and show both Matchfound as Yes</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1811116#M66112</link>
      <description>&lt;P&gt;Hello Together,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I compare 2 Values from different rows.&lt;BR /&gt;I &lt;SPAN&gt;count the Material Number if the Text and the Price are equal to each other.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daniel1908_1-1622128407028.png" style="width: 481px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55837i91202B717BD65614/image-dimensions/481x54?v=v2" width="481" height="54" role="button" title="Daniel1908_1-1622128407028.png" alt="Daniel1908_1-1622128407028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;No I want to show both Matchfound as "Yes"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am using the below in script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Left Join (Data)&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;Text,&lt;BR /&gt;&lt;BR /&gt;If(Count(Text)&amp;gt;1,1) as CountText&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Group by Text;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Left Join (Data)&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;"Price",&lt;BR /&gt;&lt;BR /&gt;If(Count("Price")&amp;gt;1,1) as CountPrice&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Group by "Price";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Join (Data)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;"Price","Text","Materialnumber",&lt;BR /&gt;IF ("Price"= Previous("Price") and Text = Previous(Text),'Yes','No') as MatchFound&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Order by "Price","Text","Materialnumber" asc;&lt;/P&gt;&lt;P&gt;Join (Data)Load&lt;/P&gt;&lt;P&gt;"Price","Text","Materialnumber",&lt;BR /&gt;IF ("Price"= Previous("Price") and Text = Previous(Text),'Yes','No') as MatchFound&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Order by "Price","Text","Materialnumber" desc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 15:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1811116#M66112</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-05-27T15:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to values and show both Matchfound as Yes</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1811288#M66127</link>
      <description>&lt;P&gt;i would like to understand the match and group by logic should be implemented at script level? can you not do at UI level?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 07:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1811288#M66127</guid>
      <dc:creator>Sammy_AK</dc:creator>
      <dc:date>2021-05-28T07:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to values and show both Matchfound as Yes</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1811416#M66139</link>
      <description>&lt;P&gt;I would like to display/filter the materials which have the same Price and the same Text. Not only one of both.&amp;nbsp;&lt;BR /&gt;First the Group by was set to compare equal Price and equal Text, but if I filtered the equal Price, it showed the ones with different text as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore the Matchfound was set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Matchfound works, but I can't filter the equal materials because it only shows one as "Yes".&amp;nbsp;&lt;BR /&gt;Even if there are more equal materials.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to do at UI Level?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 15:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1811416#M66139</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-05-28T15:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to values and show both Matchfound as Yes</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1811727#M66195</link>
      <description>&lt;P&gt;yes, there are several ways to achieve this, i able to find a solution using the load script. in order to replicate the similar scenario,&lt;/P&gt;&lt;P&gt;i used a inline load to load the data (please interpret txt as text, mat_num as material number, price as Price and CountPrice as c_prc)&amp;nbsp;and then used a precedence load and derived a column "txt&amp;amp;price" because as mention by you both txt and price should be equal and then be counted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the next load, i used "txt&amp;amp;price" as my key and performed a count on price and aggregated by text and price, this will give me the output as required.&lt;/P&gt;&lt;P&gt;in the third using the c_prc, i derived a logic that if the count is greater than 1 then its a yes else no which gave me the output as requested by you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is the script i used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;//Precedence Load&lt;BR /&gt;Load *,&lt;BR /&gt;txt&amp;amp;price;&lt;/P&gt;&lt;P&gt;//Inline load to load dummy data&lt;BR /&gt;Load * inline [&lt;BR /&gt;mat_num, txt, price&lt;BR /&gt;112,pant,20&lt;BR /&gt;113,pant,20&lt;BR /&gt;211,shirt,10&lt;BR /&gt;221,shirt,10&lt;BR /&gt;311,shirt,30&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;//deriving the count price and joining the data&lt;BR /&gt;join (Data)&lt;BR /&gt;Load&lt;BR /&gt;txt&amp;amp;price,&lt;BR /&gt;count(price) as c_prc&lt;BR /&gt;Resident Data&lt;BR /&gt;group by txt, price;&lt;/P&gt;&lt;P&gt;//deriving the match and found logic&lt;/P&gt;&lt;P&gt;Join (Data)&lt;BR /&gt;Load&lt;BR /&gt;txt&amp;amp;price,&lt;BR /&gt;if(c_prc &amp;gt; 1, 'Yes','No') as Match_Found&lt;BR /&gt;Resident Data;&lt;/P&gt;&lt;P&gt;Exit Script;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 09:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1811727#M66195</guid>
      <dc:creator>Sammy_AK</dc:creator>
      <dc:date>2021-05-31T09:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to values and show both Matchfound as Yes</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1812291#M66283</link>
      <description>&lt;P&gt;Unfortunately&amp;nbsp; the data load did not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway I got the Matchfound worked with an expression in the worksheet:&lt;/P&gt;&lt;P&gt;=&lt;BR /&gt;AGGR(If(Count([Price])&amp;gt;1,If(Count(Text)&amp;gt;1,'Match','No Match'),'No Match'),[Price], Text)&lt;/P&gt;&lt;P&gt;Now I want to count the Material Numbers which got a Match.&amp;nbsp;&lt;BR /&gt;An Idea how to add this?&lt;/P&gt;&lt;P&gt;Also the filter function does not work correctly in the table.&amp;nbsp;&lt;BR /&gt;If I click on Match it selects the No Match ones as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 06:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1812291#M66283</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-06-02T06:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to values and show both Matchfound as Yes</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1812697#M66330</link>
      <description>&lt;P&gt;try this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(if (&lt;SPAN&gt;AGGR(If(Count([Price])&amp;gt;1,If(Count(Text)&amp;gt;1,'Match','No Match'),'No Match'),[Price], Text)&lt;/SPAN&gt;= 'Match',1))&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 11:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1812697#M66330</guid>
      <dc:creator>Sammy_AK</dc:creator>
      <dc:date>2021-06-03T11:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to values and show both Matchfound as Yes</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1813280#M66397</link>
      <description>&lt;P&gt;The expression shows ok but I get the message "invalid dimension".&amp;nbsp;&lt;/P&gt;&lt;P&gt;An Idea how to count the material numbers which got a match?&lt;/P&gt;&lt;P&gt;Kind Regards&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 07:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-to-values-and-show-both-Matchfound-as-Yes/m-p/1813280#M66397</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-06-07T07:42:35Z</dc:date>
    </item>
  </channel>
</rss>

