<?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: Help with Expression for Pivot table to get output of multiple nested if conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44464#M7462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it! So I guess when you have such long nested if formulae and need to use their output in another expression the best way would be to go with variables. Lesson learnt! Thanks a lot Sunny! Really really appreciate it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 14:35:04 GMT</pubDate>
    <dc:creator>mrthomasshelby</dc:creator>
    <dc:date>2018-05-02T14:35:04Z</dc:date>
    <item>
      <title>Help with Expression for Pivot table to get output of multiple nested if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44460#M7458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a 5 separate Pivot tables which give the results of a bidder rating(G='Acceptable',Y='Neutral',R='Rejected) based on multiple conditions for 5 Packages as shown in the image below:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201278" alt="QV123.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201278_QV123.png" style="height: 155px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to create a summary table of the above 5 tables, giving the list of Bidders falling into each rating bucket. Something like this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Rating&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;A(MPL)&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;B1(RMSP-L)&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;B2(MMSP-G)&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;C1(Parts)&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;C2(MMSP-L)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Acceptable&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Bidder1004,Bidder1005,Bidder2001,Bidder2006&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Bidder1001,Bidder1004,Bidder2002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Neutral&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Bidder2005,Bidder2007&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Bidder1008,Bidder2001,Bidder2005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Rejected&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Bidder1001,Bidder1002,Bidder1003,Bidder1006,Bidder1007,Bidder1008,&lt;/P&gt;&lt;P&gt;Bidder2002,Bidder2003,Bidder2004,Bidder2008&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Bidder1002,Bidder1003,Bidder1005,Bidder1006,Bidder1007,Bidder2003,&lt;/P&gt;&lt;P&gt;Bidder2004,Bidder2006,Bidder2007,Bidder2008&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly help me with getting the expression right for this summary table. I have tried the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match(Rating,'Acceptable','Neutral','Rejected'),&lt;/P&gt;&lt;P&gt;if(if(FinalResult='OVERALL TECHNICAL PARITY BAND' and Wildmatch(Bidder,'Bidder1***')=1 and (Count({&amp;lt;Appendix={'Appendix V'},No={'1A'},A={'COMPLY'}&amp;gt;}Items)=0) or (Count({&amp;lt;Appendix={'Appendix V'},&lt;A&gt;={'COMPLY'}&amp;gt;}distinct No)&amp;lt;&amp;gt;Count({&amp;lt;Appendix={'Appendix V'},&lt;/A&gt;&lt;A&gt;-={'N/A'}&amp;gt;}distinct No)) or (Package='Package A' and [HSE Evaluation Result]='R') or (Sum(If(VC.F22 = 'CV Submitted by Bidder', Responses0))&amp;lt;4) or&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Flag9='Fail' or Flag10='Fail' or Flag11='Fail' or Flag12='Fail' or Flag13='Fail' or Flag14='Fail') or (Flag15='Fail' or Flag16='Fail' or Flag17='Fail' or Flag18='Fail' or Flag19='Fail' or Flag20='Fail') or (Count({&amp;lt;Appendix={'Appendix V'},No={'14'},&lt;A&gt;={'COMPLY'}&amp;gt;}distinct No)=0) or&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Package='Package A' and [Financial Evaluaton Result]='R'),'R',&lt;/P&gt;&lt;P&gt;if(FinalResult='OVERALL TECHNICAL PARITY BAND' and Wildmatch(Bidder,'Bidder1***')=1 and (Count({&amp;lt;Appendix={'Appendix V'},No={'1A'},A={'COMPLY'}&amp;gt;}Items)=1) and (Count({&amp;lt;Appendix={'Appendix V'},&lt;A&gt;={'COMPLY'}&amp;gt;}distinct No)=Count({&amp;lt;Appendix={'Appendix V'},&lt;/A&gt;&lt;A&gt;-={'N/A'}&amp;gt;}distinct No)) and (Sum(If(VC.F22 = 'CV Submitted by Bidder', Responses0))&amp;gt;=4) and&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Count({&amp;lt;Appendix={'Appendix V'},No={'14'},&lt;A&gt;={'COMPLY'}&amp;gt;}distinct No)=1) and (Package='Package A' and [HSE Evaluation Result]='Y') or (Flag12='Yellow') or (Flag18='Yellow') or (Package='Package A' and [Financial Evaluaton Result]='Y'),&lt;/A&gt;&lt;/P&gt;&lt;P&gt;'Y',&lt;/P&gt;&lt;P&gt;if(FinalResult='OVERALL TECHNICAL PARITY BAND' and Wildmatch(Bidder,'Bidder2***')=1 and (Count({&amp;lt;Appendix={'Appendix V'},No={'1A'},A={'COMPLY'}&amp;gt;}Items)=0) or (Sum({&amp;lt;Appendix={'Appendix V(D) Time'}&amp;gt;}&lt;A&gt;)&amp;lt;60 and Sum({&amp;lt;Appendix={'Appendix V(D) Value'}&amp;gt;}&lt;/A&gt;&lt;A&gt;)&amp;lt;3000000) or (Count({&amp;lt;Appendix={'Appendix V'},&lt;/A&gt;&lt;A&gt;={'COMPLY'}&amp;gt;}distinct No)&amp;lt;&amp;gt;Count({&amp;lt;Appendix={'Appendix V'},&lt;/A&gt;&lt;A&gt;-={'N/A'}&amp;gt;}distinct No)) or (Package='Package A' and [HSE Evaluation Result]='R') or (Sum(If(VC.F22 = 'CV Submitted by Bidder', Responses0))&amp;lt;4) or&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Flag9='Fail' or Flag10='Fail' or Flag11='Fail' or Flag12='Fail' or Flag13='Fail' or Flag14='Fail') or (Flag15='Fail' or Flag16='Fail' or Flag17='Fail' or Flag18='Fail' or Flag19='Fail' or Flag20='Fail') or (Count({&amp;lt;Appendix={'Appendix V'},No={'14'},&lt;A&gt;={'COMPLY'}&amp;gt;}distinct No)=0) or&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Package='Package A' and [Financial Evaluaton Result]='R'),'R',&lt;/P&gt;&lt;P&gt;if(FinalResult='OVERALL TECHNICAL PARITY BAND' and Wildmatch(Bidder,'Bidder2***')=1 and (Count({&amp;lt;Appendix={'Appendix V'},No={'1A'},A={'COMPLY'}&amp;gt;}Items)=1) and (Sum({&amp;lt;Appendix={'Appendix V(D) Time'}&amp;gt;}&lt;A&gt;)&amp;gt;=60 or Sum({&amp;lt;Appendix={'Appendix V(D) Value'}&amp;gt;}&lt;/A&gt;&lt;A&gt;)&amp;gt;=3000000) and (Count({&amp;lt;Appendix={'Appendix V'},&lt;/A&gt;&lt;A&gt;={'COMPLY'}&amp;gt;}distinct No)=Count({&amp;lt;Appendix={'Appendix V'},&lt;/A&gt;&lt;A&gt;-={'N/A'}&amp;gt;}distinct No)) and (Sum(If(VC.F22 = 'CV Submitted by Bidder', Responses0))&amp;gt;=4) and&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Count({&amp;lt;Appendix={'Appendix V'},No={'14'},&lt;A&gt;={'COMPLY'}&amp;gt;}distinct No)=1) and (Flag12='Yellow') or (Flag18='Yellow') or (Package='Package A' and [HSE Evaluation Result]='Y') or (Package='Package A' and [Financial Evaluaton Result]='Y'),&lt;/A&gt;&lt;/P&gt;&lt;P&gt;'Y','G'))))='G',Bidder))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the multiple nested if conditions give the criteria for rating the bidder but it seems it's not correct as the table becomes blank.. I'm attaching the QV file to the post. You can find the summary table in the tab named 'Summary'. Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/34510"&gt;kaushik.solanki&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44460#M7458</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2018-05-02T14:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Expression for Pivot table to get output of multiple nested if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44461#M7459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201288_Capture.PNG" style="height: 171px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44461#M7459</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-02T14:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Expression for Pivot table to get output of multiple nested if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44462#M7460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow. Excellent! You put the pick match expression in a variable and then used another pick match function in the actual table with Concat(Aggr). Can you please explain what the Concat(Aggr is helping us accomplish in this expression? Thanks a ton again Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44462#M7460</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2018-05-02T14:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Expression for Pivot table to get output of multiple nested if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44463#M7461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Concatenating multiple Bidders into a single cell &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44463#M7461</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-02T14:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Expression for Pivot table to get output of multiple nested if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44464#M7462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it! So I guess when you have such long nested if formulae and need to use their output in another expression the best way would be to go with variables. Lesson learnt! Thanks a lot Sunny! Really really appreciate it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44464#M7462</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2018-05-02T14:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Expression for Pivot table to get output of multiple nested if conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44465#M7463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if I had to repeat the same expression three times, how horrible was it going to look... to make it look small (and deceive you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;) I used variable.... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 14:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Expression-for-Pivot-table-to-get-output-of-multiple/m-p/44465#M7463</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-02T14:36:41Z</dc:date>
    </item>
  </channel>
</rss>

