<?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: QV: Reflect single value in textbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QV-Reflect-single-value-in-textbox/m-p/1333456#M617846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in your text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Concat(DISTINCT IF([Event Year] = '2017', Resort),&amp;nbsp; '|')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Apr 2017 21:44:35 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2017-04-03T21:44:35Z</dc:date>
    <item>
      <title>QV: Reflect single value in textbox</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Reflect-single-value-in-textbox/m-p/1333455#M617845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a textbox that reflects a single string value depending on the current selections and a formula integrated in the textbox itself.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Textbox currently contains the following query: =if([Event Year]=2017), 'Resort')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Database is organized this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); 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;Event Year&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;Event&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;Resort&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;Game&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;World Cup&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A-City&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Game 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017&lt;/TD&gt;&lt;TD&gt;World Cup&lt;/TD&gt;&lt;TD&gt;A-City&lt;/TD&gt;&lt;TD&gt;Game 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;World Cup&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B-City&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Game 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2016&lt;/TD&gt;&lt;TD&gt;World Cup&lt;/TD&gt;&lt;TD&gt;C-City&lt;/TD&gt;&lt;TD&gt;Game 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017&lt;/TD&gt;&lt;TD&gt;European Cup&lt;/TD&gt;&lt;TD&gt;D-City&lt;/TD&gt;&lt;TD&gt;Game 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2016&lt;/TD&gt;&lt;TD&gt;European Cup&lt;/TD&gt;&lt;TD&gt;E-City&lt;/TD&gt;&lt;TD&gt;Game 1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Now, as soon as the user filters to event "World Cup", the textbox should be able, with the help of the if-formula, to reflect the respective single value, as for 2017 there is only one distinct value in this column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in order that the formula correctly shows "A-City", I have to filter to Event year 2017 with the help of a listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody see the mistake I am making, or the information I am missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Benedikt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 20:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Reflect-single-value-in-textbox/m-p/1333455#M617845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-03T20:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: QV: Reflect single value in textbox</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Reflect-single-value-in-textbox/m-p/1333456#M617846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in your text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Concat(DISTINCT IF([Event Year] = '2017', Resort),&amp;nbsp; '|')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 21:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Reflect-single-value-in-textbox/m-p/1333456#M617846</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-04-03T21:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: QV: Reflect single value in textbox</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Reflect-single-value-in-textbox/m-p/1333457#M617847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure exactly how you wanted to see it, but here is a way to only show a value if a single event is selected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Event&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2017}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Resort&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 23:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Reflect-single-value-in-textbox/m-p/1333457#M617847</guid>
      <dc:creator>craigsutton</dc:creator>
      <dc:date>2017-04-03T23:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: QV: Reflect single value in textbox</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Reflect-single-value-in-textbox/m-p/1333458#M617848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Craig and Vishwarath, both your options work fine and give the correct results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 07:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Reflect-single-value-in-textbox/m-p/1333458#M617848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-04T07:50:31Z</dc:date>
    </item>
  </channel>
</rss>

