<?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 How to set a dimension value in an expression. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-set-a-dimension-value-in-an-expression/m-p/150896#M28831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a gauge that show the actual income as a percent of budgeted income. This should display the result for the user's selection of period and department. However I always want to show &lt;STRONG&gt;Income&lt;/STRONG&gt;. So if the user has selected 'Fin Stmt Section' to be 'Expenses', I want the expression to overide this setting. ie set 'Fin Stmt Section' to be 'Income'.&lt;/P&gt;&lt;P&gt;The following doesn't really work: &lt;B&gt;if&lt;/B&gt;(&lt;B&gt;"Fin Stmt Section"&lt;/B&gt; = 'Income', &lt;B&gt;Sum&lt;/B&gt;(&lt;B&gt;Actual$&lt;/B&gt;)/&lt;B&gt;Sum&lt;/B&gt; (&lt;B&gt;Budget$&lt;/B&gt;),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;as it gives the correct result if the user selected 'income' otherwise is shows zero.&lt;/P&gt;&lt;P&gt;Thanks for your help..&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Aug 2009 12:42:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-03T12:42:07Z</dc:date>
    <item>
      <title>How to set a dimension value in an expression.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-dimension-value-in-an-expression/m-p/150896#M28831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a gauge that show the actual income as a percent of budgeted income. This should display the result for the user's selection of period and department. However I always want to show &lt;STRONG&gt;Income&lt;/STRONG&gt;. So if the user has selected 'Fin Stmt Section' to be 'Expenses', I want the expression to overide this setting. ie set 'Fin Stmt Section' to be 'Income'.&lt;/P&gt;&lt;P&gt;The following doesn't really work: &lt;B&gt;if&lt;/B&gt;(&lt;B&gt;"Fin Stmt Section"&lt;/B&gt; = 'Income', &lt;B&gt;Sum&lt;/B&gt;(&lt;B&gt;Actual$&lt;/B&gt;)/&lt;B&gt;Sum&lt;/B&gt; (&lt;B&gt;Budget$&lt;/B&gt;),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;as it gives the correct result if the user selected 'income' otherwise is shows zero.&lt;/P&gt;&lt;P&gt;Thanks for your help..&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 12:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-dimension-value-in-an-expression/m-p/150896#M28831</guid>
      <dc:creator />
      <dc:date>2009-08-03T12:42:07Z</dc:date>
    </item>
    <item>
      <title>How to set a dimension value in an expression.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-dimension-value-in-an-expression/m-p/150897#M28832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Derek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you got an field name with spaces in it, use the [ ] brackets&lt;/P&gt;&lt;P&gt;try using Set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sum({$ &amp;lt;[Fin Stmt Section]={"Income"}&amp;gt;} Actual$) / Sum({$ &amp;lt;[Fin Stmt Section]={"Income"}&amp;gt;} Budget$)&lt;BR /&gt;This should do the trick&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 13:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-dimension-value-in-an-expression/m-p/150897#M28832</guid>
      <dc:creator />
      <dc:date>2009-08-03T13:16:02Z</dc:date>
    </item>
    <item>
      <title>How to set a dimension value in an expression.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-dimension-value-in-an-expression/m-p/150898#M28833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rey-man - that worked and I've learned something new.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 07:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-dimension-value-in-an-expression/m-p/150898#M28833</guid>
      <dc:creator />
      <dc:date>2009-08-04T07:11:16Z</dc:date>
    </item>
  </channel>
</rss>

