<?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: How to write Expression in Text Object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794613#M280816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try 'Room 3' (space between Room and 3) instead of 'Room3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grtz Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2015 14:53:48 GMT</pubDate>
    <dc:creator>fred_s</dc:creator>
    <dc:date>2015-03-26T14:53:48Z</dc:date>
    <item>
      <title>How to write Expression in Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794608#M280811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a Text object to display, either a green "Check" image, if the expression is TRUE, and same Text object must display a red "X" image if the expression is not true. I included this logic in the "Text" right mouse click -&amp;gt; Properties -&amp;gt; General tab -&amp;gt; Edit Expression box, but it does not work. I may not be using the right syntax. Can someone please suggest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[&lt;BR /&gt;Room, Error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Room 1, 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Room 2, 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Room 3, 1]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The table looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 119pt; border-collapse: collapse;" width="159"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="background-color: transparent; width: 48pt; height: 12.75pt; border: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="color: #000000;"&gt;Room&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 71pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="95"&gt;&lt;SPAN style="color: #000000;"&gt;Error&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="color: #000000;"&gt;Room 1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="color: #000000;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="color: #000000;"&gt;Room 2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="color: #000000;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="color: #000000;"&gt;Room 3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="color: #000000;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;I selected a "Text" object. In text object "Properties" -&amp;gt; General tab -&amp;gt; within "Text" box, I want to type an expression or logic in the text object, that displays:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a green check image, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;if Room = Room 1 and Error = 0, otherwise the object will display &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;a Red X image&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Similary, there will be three separate Text objects for three rooms. Room 1 and Room 2 will display green checks and Room 3 will display red X.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Expression for green checkbox = &lt;SPAN style="color: #008000; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/check_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/cross_r.png')&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #575757;"&gt;Expression for red X = &lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/cross_r.png'&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This logic works in other Chart Type. I am able to execute this expression in Chart, by selecting Guage chart type, and in Properties select horizontal Traffic Light "Style".&lt;/P&gt;&lt;P&gt;Dimension: &lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Room]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;='Room 1',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[CV-190 Room]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;SPAN style="color: #0000ff;"&gt;Error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This works perfectly, but it gives me only Round green and Round Red options. I prefer to use the green Check image and Red X image that is already available in "Edit Expression" -&amp;gt; "Images" tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 21:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794608#M280811</guid>
      <dc:creator />
      <dc:date>2015-03-25T21:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expression in Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794609#M280812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghavendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change representation to image and try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grtz Fred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="rooms.JPG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/81935_rooms.JPG" style="height: 524px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 21:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794609#M280812</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2015-03-25T21:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expression in Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794610#M280813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick response. I am already using Image "representation". I want to know the syntax that can be used in the "Text" box field that is located above the "Representation" field. The logic must do following:&lt;/P&gt;&lt;P&gt;If((Room = 'Room 1') and (Error = 0), 'green checkbox', 'red x').&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 21:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794610#M280813</guid>
      <dc:creator />
      <dc:date>2015-03-25T21:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expression in Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794611#M280814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(sum({&amp;lt;Room={'Room 3'} &amp;gt;} Errorx) &amp;gt; 0, 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/cross_r.png' , 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/check_g.png')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grtz Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 21:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794611#M280814</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2015-03-25T21:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expression in Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794612#M280815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Room&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'Room1'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Error&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) =0, 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/check_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/cross_r.png')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I get the green check, but when I replace Room1 with Room3, I am supposed to see Red X, but instead I see green check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The three Text Objects for three rooms must display:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;IMG alt="Check.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/82032_Check.jpg" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Raghu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 14:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794612#M280815</guid>
      <dc:creator />
      <dc:date>2015-03-26T14:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expression in Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794613#M280816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try 'Room 3' (space between Room and 3) instead of 'Room3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grtz Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 14:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794613#M280816</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2015-03-26T14:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expression in Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794614#M280817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your earlier suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Room&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'Room 1'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Error&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) =0, 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/check_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/cross_r.png')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 15:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794614#M280817</guid>
      <dc:creator />
      <dc:date>2015-03-26T15:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expression in Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794615#M280818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark this question as answered.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expression-in-Text-Object/m-p/794615#M280818</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2015-03-26T16:35:35Z</dc:date>
    </item>
  </channel>
</rss>

