<?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 Expression in Straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-Straight-table/m-p/929915#M321598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a question on using an expression in a straight table vs using it in a list box. I have the below example where I have a Network IP associated with an Environment. For a list of Host IP I want to list which Environment that Host IP belongs to based on matches against the Network field. Please see attached qvw for details.&lt;/P&gt;&lt;P&gt; I was able to create a List box which lists the environment for the list of Host IPs successfully. This created a list box with the output values only.&amp;nbsp; But I need to have a table with the Host IP and the Environment columns as part of the table (Reference in qvw: ListBox-with-Expression-as-Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried to create a list box and added the condition under the Expressions Tab in the listBox properties, which gave me a proper table like what I need but the expression field gets updated with the correct value only on selection of that Host IP. ( Reference in qvw: ListBox-with-expressions)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I switch to using a Straight Table instead of list box, so that I add an expression, but I find that it only lists the rows for the successful condition match. if I add the else part to the condition I dont get any output&lt;/P&gt;&lt;P&gt;for e.g. if(left(hostipbin,edited)=CalcNet,ENVIRONMENT) --&amp;gt; works and gives me only the successfully matched rows.&lt;/P&gt;&lt;P&gt;if(left(hostipbin,edited)=CalcNet,ENVIRONMENT,'nomatch')---&amp;gt; gives me too may rows as the output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help understand the difference in the behavior?&amp;nbsp; Also how can I get what I have for the working listbox "ListBox-with-Expression-as-Field"&amp;nbsp; as a column in a straight table. Basically I want the out to look like table below, without having to make any selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HostIP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Environment&lt;/P&gt;&lt;P&gt;10.16.2.5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nomatch&lt;/P&gt;&lt;P&gt;10.16.0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; site A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2015 22:26:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-03T22:26:37Z</dc:date>
    <item>
      <title>Expression in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-Straight-table/m-p/929915#M321598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a question on using an expression in a straight table vs using it in a list box. I have the below example where I have a Network IP associated with an Environment. For a list of Host IP I want to list which Environment that Host IP belongs to based on matches against the Network field. Please see attached qvw for details.&lt;/P&gt;&lt;P&gt; I was able to create a List box which lists the environment for the list of Host IPs successfully. This created a list box with the output values only.&amp;nbsp; But I need to have a table with the Host IP and the Environment columns as part of the table (Reference in qvw: ListBox-with-Expression-as-Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried to create a list box and added the condition under the Expressions Tab in the listBox properties, which gave me a proper table like what I need but the expression field gets updated with the correct value only on selection of that Host IP. ( Reference in qvw: ListBox-with-expressions)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I switch to using a Straight Table instead of list box, so that I add an expression, but I find that it only lists the rows for the successful condition match. if I add the else part to the condition I dont get any output&lt;/P&gt;&lt;P&gt;for e.g. if(left(hostipbin,edited)=CalcNet,ENVIRONMENT) --&amp;gt; works and gives me only the successfully matched rows.&lt;/P&gt;&lt;P&gt;if(left(hostipbin,edited)=CalcNet,ENVIRONMENT,'nomatch')---&amp;gt; gives me too may rows as the output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help understand the difference in the behavior?&amp;nbsp; Also how can I get what I have for the working listbox "ListBox-with-Expression-as-Field"&amp;nbsp; as a column in a straight table. Basically I want the out to look like table below, without having to make any selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HostIP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Environment&lt;/P&gt;&lt;P&gt;10.16.2.5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nomatch&lt;/P&gt;&lt;P&gt;10.16.0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; site A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 22:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-Straight-table/m-p/929915#M321598</guid>
      <dc:creator />
      <dc:date>2015-11-03T22:26:37Z</dc:date>
    </item>
  </channel>
</rss>

