<?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 Complicated, matching/ finding a set value and using mode in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Complicated-matching-finding-a-set-value-and-using-mode/m-p/1636165#M47394</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short trying to use the below to look at Lines (of an order) and return a yes no.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OF:
LOAD
    OF_Id_Key_Opportunity
FROM [lib://Finance/OF_Suppliment.qvd]
(qvd);


Left Join (OF)
LOAD Distinct
OPP_LI_Opportunity_Id_Key as OF_Id_Key_Opportunity,
OPP_LI_Product_Id_Key as Product_Id_Key,
OPP_LI_Description
FROM [lib://CLM/REP_Opportunity_Line_Item.qvd]
(qvd);

Cables_Load_Filter:
load * Inline
 [Product_Movex_Part_Number,
1518265];

Cables_Products:
LOAD
Product_Id_Key,
Product_Movex_Part_Number,
Product_Description
FROM [lib://CLM/REP_Product2.qvd]
(qvd)
Where Exists(Product_Movex_Part_Number);

Left Join (OF)
LOAD
     Product_Id_Key,
	Mode('Yes') as OF_Cables
RESIDENT Cables_Products
Group by Product_Id_Key;
drop table Cables_Load_Filter,Cables_Products;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It used to work fantastically for multiple iterations looking at other product variances as well. but I had to switch the data around and now it does not return the OF_Cables field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Id love to explore better options but currently i am up against a urgent deadline and need the example above to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The old version is below which worked.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;left join(OF)
LOAD Distinct
Quote_BM_Opportunity_Id_Key as OF_Id_Key_Opportunity,
Quote_Id_Key as BM_Quote_Prod_Quote_Id_Key,
Quote_Name,
Quote_BM_Description,
Quote_BM_Is_Primary
FROM [lib://CLM/REP_BM_Quote.qvd]
(qvd)
where Quote_BM_Is_Primary = 'true';

Cables_Load_Filter:
load * Inline
 [Quote_Prod_Name,
1518265];

Cables_Products:
LOAD
BM_Quote_Prod_Quote_Id_Key,
BM_Quote_Prod_Description
FROM [lib://CLM/REP_BM_Quote_Product.qvd]
(qvd)
Where Exists(Quote_Prod_Name);

left join(OF)
LOAD
     BM_Quote_Prod_Quote_Id_Key,
	Mode('Yes') as OF_Cables
RESIDENT Cables_Products
Group by BM_Quote_Prod_Quote_Id_Key;

drop table Cables_Load_Filter,Cables_Products;&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:53:14 GMT</pubDate>
    <dc:creator>mikegauntlett</dc:creator>
    <dc:date>2024-11-16T19:53:14Z</dc:date>
    <item>
      <title>Complicated, matching/ finding a set value and using mode</title>
      <link>https://community.qlik.com/t5/App-Development/Complicated-matching-finding-a-set-value-and-using-mode/m-p/1636165#M47394</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short trying to use the below to look at Lines (of an order) and return a yes no.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OF:
LOAD
    OF_Id_Key_Opportunity
FROM [lib://Finance/OF_Suppliment.qvd]
(qvd);


Left Join (OF)
LOAD Distinct
OPP_LI_Opportunity_Id_Key as OF_Id_Key_Opportunity,
OPP_LI_Product_Id_Key as Product_Id_Key,
OPP_LI_Description
FROM [lib://CLM/REP_Opportunity_Line_Item.qvd]
(qvd);

Cables_Load_Filter:
load * Inline
 [Product_Movex_Part_Number,
1518265];

Cables_Products:
LOAD
Product_Id_Key,
Product_Movex_Part_Number,
Product_Description
FROM [lib://CLM/REP_Product2.qvd]
(qvd)
Where Exists(Product_Movex_Part_Number);

Left Join (OF)
LOAD
     Product_Id_Key,
	Mode('Yes') as OF_Cables
RESIDENT Cables_Products
Group by Product_Id_Key;
drop table Cables_Load_Filter,Cables_Products;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It used to work fantastically for multiple iterations looking at other product variances as well. but I had to switch the data around and now it does not return the OF_Cables field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Id love to explore better options but currently i am up against a urgent deadline and need the example above to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The old version is below which worked.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;left join(OF)
LOAD Distinct
Quote_BM_Opportunity_Id_Key as OF_Id_Key_Opportunity,
Quote_Id_Key as BM_Quote_Prod_Quote_Id_Key,
Quote_Name,
Quote_BM_Description,
Quote_BM_Is_Primary
FROM [lib://CLM/REP_BM_Quote.qvd]
(qvd)
where Quote_BM_Is_Primary = 'true';

Cables_Load_Filter:
load * Inline
 [Quote_Prod_Name,
1518265];

Cables_Products:
LOAD
BM_Quote_Prod_Quote_Id_Key,
BM_Quote_Prod_Description
FROM [lib://CLM/REP_BM_Quote_Product.qvd]
(qvd)
Where Exists(Quote_Prod_Name);

left join(OF)
LOAD
     BM_Quote_Prod_Quote_Id_Key,
	Mode('Yes') as OF_Cables
RESIDENT Cables_Products
Group by BM_Quote_Prod_Quote_Id_Key;

drop table Cables_Load_Filter,Cables_Products;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complicated-matching-finding-a-set-value-and-using-mode/m-p/1636165#M47394</guid>
      <dc:creator>mikegauntlett</dc:creator>
      <dc:date>2024-11-16T19:53:14Z</dc:date>
    </item>
  </channel>
</rss>

