<?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: Using IF condition in Text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102322#M631305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try aggregation functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Market: ' &amp;amp; Concat(DISTINCT Market,', ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Count(DISTINCT Market)&amp;gt;1,'Multiple', Only(Market) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2016 19:13:18 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-07-19T19:13:18Z</dc:date>
    <item>
      <title>Using IF condition in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102321#M631304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help in what seem to be easy and straightforward yet i am not able to do it. I am trying to create a text box which how name of the market when i select an agent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this i am doing &lt;/P&gt;&lt;P&gt;='Market: ' &amp;amp; Market&lt;/P&gt;&lt;P&gt;and the outcome is something like Market: Alabama. Now&amp;nbsp; the problem is if the agent has multiple markets the filed goes Blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tired using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Market&amp;gt;1, 'Multiple Markets', Market)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But nothing works. Please help me out with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate all your help and support. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 18:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102321#M631304</guid>
      <dc:creator />
      <dc:date>2016-07-19T18:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF condition in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102322#M631305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try aggregation functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Market: ' &amp;amp; Concat(DISTINCT Market,', ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Count(DISTINCT Market)&amp;gt;1,'Multiple', Only(Market) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 19:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102322#M631305</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-07-19T19:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF condition in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102323#M631306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;for this i am doing&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;='Market: ' &amp;amp; Market&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and the outcome is something like Market: Alabama. Now&amp;nbsp; the problem is if the agent has multiple markets the filed goes Blank&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;your expression is &lt;/P&gt;&lt;P&gt;='Market' &amp;amp; only(Market)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2662"&gt;The Only Function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the reason you get a blank&lt;/P&gt;&lt;P&gt;You should use in that case an aggregation function, it could be&lt;/P&gt;&lt;P&gt;concat (or concat distinct) to get all the markets&lt;/P&gt;&lt;P&gt;maxstring, minstring&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 19:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102323#M631306</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-07-19T19:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF condition in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102324#M631307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the Explanation ..it really helped &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 19:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102324#M631307</guid>
      <dc:creator />
      <dc:date>2016-07-19T19:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF condition in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102325#M631308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp; ...Concat did what i wanted with it. But while i was working this out i ran into another issue. I have a list box that shows all the agents in all the region. I want this list box to be filtered to all the agents from a specific region the selected agent is from. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if my selected agent belongs to region 1, then i want to show all the other agents that belong to region 1 in the list box. I have no idea how to go about with this. Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 19:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102325#M631308</guid>
      <dc:creator />
      <dc:date>2016-07-19T19:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF condition in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102326#M631309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;syed quadri wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp; ...Concat did what i wanted with it. But while i was working this out i ran into another issue. I have a list box that shows all the agents in all the region. I want this list box to be filtered to all the agents from a specific region the selected agent is from.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;For example, if my selected agent belongs to region 1, then i want to show all the other agents that belong to region 1 in the list box. I have no idea how to go about with this. Please help me.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Syed.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Try a field &amp;lt;expression&amp;gt; in your list box like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr( Only(&lt;STRONG&gt;{&amp;lt;Agent=, Region = p()&amp;gt;}&lt;/STRONG&gt; Agent), Agent)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 20:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102326#M631309</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-07-19T20:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF condition in Text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102327#M631310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using getfieldselections() you will get all market names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Market' &amp;amp; '-' &amp;amp;GetFieldSelections(Market)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="img.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147775_img.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 08:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-condition-in-Text-box/m-p/1102327#M631310</guid>
      <dc:creator>sravanthialuval</dc:creator>
      <dc:date>2016-12-28T08:20:26Z</dc:date>
    </item>
  </channel>
</rss>

