<?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: If(Only creating expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384926#M611600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim(label_which has_null)&amp;gt;0 ,if(expression_name_you_wrote='Diffrent',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RGB(0,134,182), RGB(231,104,25)) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;check spelling errors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Pradosh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2017 15:35:54 GMT</pubDate>
    <dc:creator>pradosh_thakur</dc:creator>
    <dc:date>2017-10-17T15:35:54Z</dc:date>
    <item>
      <title>If(Only creating expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384924#M611598</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 this if(only expression that was used to color code if the droute was the same or different. &lt;/P&gt;&lt;P&gt;If(Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} RROUTE) &amp;lt;&amp;gt; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} RROUTE), RGB(0,134,182), RGB(231,104,25))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They wanted to be able to separate out (toggle back and forth between 'same' and 'different'. So I created this:&lt;/P&gt;&lt;P&gt;=If(Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} RROUTE) &amp;lt;&amp;gt; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} RROUTE),'Different','Same') as an expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is the null values for the other expressions are showing because every cell is filled out same or different. I tried to create a dimension using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} RROUTE) &amp;lt;&amp;gt; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} RROUTE),'Different')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I get an error back. It comes back as // Error in calculated dimension&lt;/P&gt;&lt;P&gt;I was going to do one for 'Same' then create it conditionally based on what the radio button selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Martha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384924#M611598</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2017-10-17T15:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: If(Only creating expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384925#M611599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use an if statement from an expression which works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(ExpressionLabelforExpression1 &amp;lt;&amp;gt; 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} RROUTE) &amp;lt;&amp;gt; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} RROUTE),'Different','Same'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(ExpressionLabelforExpression1)) &amp;gt; 0, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} RROUTE) &amp;lt;&amp;gt; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} RROUTE),'Different','Same'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:07:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384925#M611599</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-17T15:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: If(Only creating expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384926#M611600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim(label_which has_null)&amp;gt;0 ,if(expression_name_you_wrote='Diffrent',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RGB(0,134,182), RGB(231,104,25)) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;check spelling errors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Pradosh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384926#M611600</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-17T15:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: If(Only creating expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384927#M611601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think color expression needs to change &lt;A href="https://community.qlik.com/people/pradosh_thakur"&gt;pradosh_thakur&lt;/A&gt;‌. Color expression only display colors for the rows which are displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384927#M611601</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-17T15:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: If(Only creating expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384928#M611602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What i thought is if the null values are showing up then len(trim()) will eliminate that and wot show the color and if same then first color and if different then other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it wrong? then i shall delete so others shall not be misinformed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pradosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384928#M611602</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-17T15:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: If(Only creating expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384929#M611603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not wrong... what I am saying is that for color expression you can only use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;if(expression_name_you_wrote='Diffrent',&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;RGB(0,134,182), RGB(231,104,25))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and not really need to use this condition -&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;if(len(trim(label_which has_null)&amp;gt;0&lt;/STRONG&gt;... this is because if your expression doesn't show anything where len of label_which has_null = 0, then your color won't really show that either... so in order to get rid of the extra rows, I would use that in the expression, not in the color.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Does that make sense?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 15:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384929#M611603</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-17T15:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: If(Only creating expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384930#M611604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The second works as an expression, but my goal is to use as a dimension. &lt;SPAN style="font-size: 13.3333px;"&gt;My thought was then I can click "Suppress When Value is Null'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I created a listbox and when the user selects 'Different', I&amp;nbsp; only want the 'Different' bars to show up. Same with 'Same'. &lt;/P&gt;&lt;P&gt;I already have expressions that are using the conditional box. And I already have a toggle button utilizing the Layout tab under conditional, so I can't use that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, when I click on Different, the other values in the other expression are showing. Is there a way to say if expression label B is null then do not show this bar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 17:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384930#M611604</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2017-10-17T17:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: If(Only creating expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384931#M611605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to help you better here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 23:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384931#M611605</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-17T23:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: If(Only creating expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384932#M611606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out the answer. I apologize it took so long to post. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(GetFieldSelections(_Route),'All','Same','Different')&lt;/P&gt;&lt;P&gt;,(Min({$&amp;lt;SITE={$(=bSite)}&amp;gt;} FARE) - Min({$&amp;lt;SITE={$(=cSite)}&amp;gt;} FARE))&lt;/P&gt;&lt;P&gt;,If(Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} RROUTE) &amp;lt;&amp;gt; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} RROUTE),0, (Min({$&amp;lt;SITE={$(=bSite)}&amp;gt;} FARE) - Min({$&amp;lt;SITE={$(=cSite)}&amp;gt;} FARE)))&lt;/P&gt;&lt;P&gt;,If(Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=bSite)}&amp;gt;} RROUTE) &amp;lt;&amp;gt; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} DROUTE) &amp;amp; Only({$&amp;lt;SITE={$(=cSite)}&amp;gt;} RROUTE), (Min({$&amp;lt;SITE={$(=bSite)}&amp;gt;} FARE) - Min({$&amp;lt;SITE={$(=cSite)}&amp;gt;} FARE)),0)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 13:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-creating-expression/m-p/1384932#M611606</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2017-12-04T13:57:46Z</dc:date>
    </item>
  </channel>
</rss>

