<?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: Return pick match condiotional in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584981#M443182</link>
    <description>I don't see how to improve performance, using a variable can help with readibility and maintenance, also a parametrized variable can be used, ie:&lt;BR /&gt;SET vExpressionName = (Sum({&amp;lt;Dim1={'$1'} ,Num={2}&amp;gt;}Expression1)/&lt;BR /&gt;Sum({&amp;lt;Dim1={'$1'} ,Num={10}&amp;gt;}Expression1)-1);&lt;BR /&gt;&lt;BR /&gt;Expression using the variable:&lt;BR /&gt;Pick(Match(Dim1,'A','B','C')&lt;BR /&gt;,if($(vExpressionName(A))&amp;gt;0&lt;BR /&gt;,$(vExpressionName(A))&lt;BR /&gt;,'N/A')&lt;BR /&gt;,if($(vExpressionName(B))&amp;gt;0&lt;BR /&gt;,$(vExpressionName(B))&lt;BR /&gt;,'N/A')&lt;BR /&gt;,if($(vExpressionName(C))&amp;gt;0&lt;BR /&gt;,$(vExpressionName(C))&lt;BR /&gt;,'N/A')&lt;BR /&gt;)</description>
    <pubDate>Mon, 27 May 2019 09:02:38 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2019-05-27T09:02:38Z</dc:date>
    <item>
      <title>Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1581206#M442892</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I need to verify if each line in my pick match is zero it is zero I need to put N/A, else the value. There is another way to getting the return of pick&amp;nbsp;match and set the N/A to zero values? or is better do this for each line, with if statement inside pick match?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1581206#M442892</guid>
      <dc:creator>jsobrinho</dc:creator>
      <dc:date>2024-11-16T03:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1581269#M442911</link>
      <description>Hi, adding one to match can help?:&lt;BR /&gt;Pick(Match(...)+1&lt;BR /&gt;, 'N/A'&lt;BR /&gt;, Expression for Match=1&lt;BR /&gt;, Expression for Match=2&lt;BR /&gt;...)</description>
      <pubDate>Thu, 16 May 2019 19:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1581269#M442911</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-05-16T19:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1581419#M442923</link>
      <description>&lt;P&gt;First of all, thank you for your answer..&lt;/P&gt;&lt;P&gt;I'm doing this&lt;BR /&gt;Pick(Match(...),&lt;BR /&gt;if (Expression for Match=1 is zero, 'N/A',&lt;BR /&gt;Expression for Match=1),&lt;BR /&gt;if(Expression for Match=2 is zero, 'N/A', Expression for Match=2&lt;/P&gt;&lt;P&gt;...)&lt;/P&gt;&lt;P&gt;I dont know if +1 is solve my problem&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 07:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1581419#M442923</guid>
      <dc:creator>jsobrinho</dc:creator>
      <dc:date>2019-05-17T07:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1581438#M442926</link>
      <description>&lt;P&gt;Have you tried? it works&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 08:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1581438#M442926</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-05-17T08:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1582615#M443004</link>
      <description>I want to eliminate the if, inside the pick match, I would like to optimize my pick match</description>
      <pubDate>Tue, 21 May 2019 09:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1582615#M443004</guid>
      <dc:creator>jsobrinho</dc:creator>
      <dc:date>2019-05-21T09:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1582616#M443005</link>
      <description>There is no if in my answer.</description>
      <pubDate>Tue, 21 May 2019 09:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1582616#M443005</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-05-21T09:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584205#M443134</link>
      <description>The + 1 is used when one of these combinations doesn't occur Pick(Match(...),&lt;BR /&gt;like Pick (match(country,'A','B','C') + 1,&lt;BR /&gt;99&lt;BR /&gt;In this example, if Country is different from A, B, C will be shown the 99&lt;BR /&gt;But my problem is&lt;BR /&gt;after this match&lt;BR /&gt;Pick (match(Country,'A','B','C')&lt;BR /&gt;I need to do other comparations like&lt;BR /&gt;Pick (match(Country,'A','B','C'),&lt;BR /&gt;if(&lt;BR /&gt;sum({&amp;lt;Country={'A'}, LEVEL={'X'}&amp;gt;}sales) &amp;gt;0,&lt;BR /&gt;sum({&amp;lt;Country={'A'}, LEVEL={'X'}&amp;gt;}sales) ,'N/A')&lt;BR /&gt;.....&lt;BR /&gt;I have a lot of option of Country, and I need to verify if this option is zeros or not, with IF inside pick match, exist another way or better to simply this logic for better performance?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 May 2019 21:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584205#M443134</guid>
      <dc:creator>jsobrinho</dc:creator>
      <dc:date>2019-05-23T21:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584292#M443139</link>
      <description>&lt;P&gt;Ok, now I understand, but i don't know otyher way to do that.&lt;/P&gt;&lt;P&gt;Maybe using RangeMax(0, [Expression]) and check the option to supress zero value can work if your table only has one measure.&lt;/P&gt;&lt;P&gt;There is also the alt() function to control no-numeric results but I think it can't work in this case.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 06:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584292#M443139</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-05-24T06:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584301#M443140</link>
      <description>&lt;P&gt;I think if you supply the full expression you have, then that will eliminate some guesswork on the part of those trying to help you. Better still, put together and upload a small qvw file with some&amp;nbsp;representative&amp;nbsp; data (does not need to be real numbers, but the structure should be the same), including the sheet object where you need the expression and details on what output values you want.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 06:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584301#M443140</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-05-24T06:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584373#M443143</link>
      <description>&lt;P&gt;OK, I'm sorry&lt;BR /&gt;I attached one example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 09:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584373#M443143</guid>
      <dc:creator>jsobrinho</dc:creator>
      <dc:date>2019-05-24T09:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584490#M443150</link>
      <description>I don't see other way to do it, in particular if the expression to evaluate if it's below zero is different than the one to do when is over zero.</description>
      <pubDate>Fri, 24 May 2019 12:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584490#M443150</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-05-24T12:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584500#M443151</link>
      <description>&lt;P&gt;I'm sorry, I put expression wrong, so to evaluate if it's below zero is equal&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pick(&lt;BR /&gt;Match(Dim1,'A','B','C'),&lt;BR /&gt;if(&lt;BR /&gt;Sum({&amp;lt;Dim1={'A'} ,Num={2}&amp;gt;}Expression1)/&lt;BR /&gt;Sum({&amp;lt;Dim1={'A'} ,Num={10}&amp;gt;}Expression1)-1&amp;gt;0,&lt;BR /&gt;Sum({&amp;lt;Dim1={'A'} ,Num={2}&amp;gt;}Expression1)/&lt;BR /&gt;Sum({&amp;lt;Dim1={'A'} ,Num={10}&amp;gt;}Expression1)-1,'N/A')&lt;BR /&gt;,&lt;/P&gt;&lt;P&gt;if(&lt;BR /&gt;Sum({&amp;lt;Dim1={'B'} ,Num={2}&amp;gt;}Expression1)/&lt;BR /&gt;Sum({&amp;lt;Dim1={'B'} ,Num={10}&amp;gt;}Expression1)-1&amp;gt;0,&lt;BR /&gt;Sum({&amp;lt;Dim1={'B'} ,Num={2}&amp;gt;}Expression1)/&lt;BR /&gt;Sum({&amp;lt;Dim1={'B'} ,Num={10}&amp;gt;}Expression1)-1,'N/A')&lt;BR /&gt;,&lt;/P&gt;&lt;P&gt;if(&lt;BR /&gt;Sum({&amp;lt;Dim1={'C'} ,Num={2}&amp;gt;}Expression1)/&lt;BR /&gt;Sum({&amp;lt;Dim1={'C'} ,Num={10}&amp;gt;}Expression1)-1&amp;gt;0,&lt;BR /&gt;Sum({&amp;lt;Dim1={'C'} ,Num={2}&amp;gt;}Expression1)/&lt;BR /&gt;Sum({&amp;lt;Dim1={'C'} ,Num={10}&amp;gt;}Expression1)-1&lt;BR /&gt;,'N/A')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 12:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584500#M443151</guid>
      <dc:creator>jsobrinho</dc:creator>
      <dc:date>2019-05-24T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584981#M443182</link>
      <description>I don't see how to improve performance, using a variable can help with readibility and maintenance, also a parametrized variable can be used, ie:&lt;BR /&gt;SET vExpressionName = (Sum({&amp;lt;Dim1={'$1'} ,Num={2}&amp;gt;}Expression1)/&lt;BR /&gt;Sum({&amp;lt;Dim1={'$1'} ,Num={10}&amp;gt;}Expression1)-1);&lt;BR /&gt;&lt;BR /&gt;Expression using the variable:&lt;BR /&gt;Pick(Match(Dim1,'A','B','C')&lt;BR /&gt;,if($(vExpressionName(A))&amp;gt;0&lt;BR /&gt;,$(vExpressionName(A))&lt;BR /&gt;,'N/A')&lt;BR /&gt;,if($(vExpressionName(B))&amp;gt;0&lt;BR /&gt;,$(vExpressionName(B))&lt;BR /&gt;,'N/A')&lt;BR /&gt;,if($(vExpressionName(C))&amp;gt;0&lt;BR /&gt;,$(vExpressionName(C))&lt;BR /&gt;,'N/A')&lt;BR /&gt;)</description>
      <pubDate>Mon, 27 May 2019 09:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1584981#M443182</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-05-27T09:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1585194#M443191</link>
      <description>Thank you,&lt;BR /&gt;&lt;BR /&gt;Two questions:&lt;BR /&gt;1- What is different of creating a variable in the script by SET, and create in CTRL + ALT + V? I tried to create by CTRL + ALT + V, but I can't.&lt;BR /&gt;&lt;BR /&gt;2- Can I pass variable as measure? like:&lt;BR /&gt;SET vExpressionName = (Sum({&amp;lt;Dim1={'$1'} ,Num={2}&amp;gt;} $2)/&lt;BR /&gt;Sum({&amp;lt;Dim1={'$1'} ,Num={10}&amp;gt;} $2)-1);&lt;BR /&gt;&lt;BR /&gt;$2 = Expression1 or Expressions2&lt;BR /&gt;&lt;BR /&gt;I tried but I can't.</description>
      <pubDate>Mon, 27 May 2019 17:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1585194#M443191</guid>
      <dc:creator>jsobrinho</dc:creator>
      <dc:date>2019-05-27T17:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Return pick match condiotional</title>
      <link>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1585210#M443192</link>
      <description>1- You should be able to create them using CTRL + ALT + V, also from an input box andfrom document properties -&amp;gt; Variables&lt;BR /&gt;&lt;BR /&gt;2- Yes, you can pass variable as measure, note that commas are usd as parameter separator so you measure shouldn't have any comma, ie you can use this:&lt;BR /&gt;$(vExpressionName(A, Sales))&lt;BR /&gt;&lt;BR /&gt;This expands as:&lt;BR /&gt;(Sum({&amp;lt;Dim1={'A'} ,Num={2}&amp;gt;} Sales)/&lt;BR /&gt;Sum({&amp;lt;Dim1={'A'} ,Num={10}&amp;gt;} Sales)-1)&lt;BR /&gt;</description>
      <pubDate>Mon, 27 May 2019 18:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-pick-match-condiotional/m-p/1585210#M443192</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-05-27T18:36:48Z</dc:date>
    </item>
  </channel>
</rss>

