<?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 Conditional expression number formatting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754095#M268641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My chart has a conditional expression, that is really two different expressions. The expression used depends on setting a variable elsewhere. It looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(vExpression='Total Spending',num(sum(Amounts),'$#,###,###'),&lt;/P&gt;&lt;P&gt;if(vExpression='Inventory',sum(Inventory),&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have enabled Values on Data Points, and I want the values to be formatted as $ for sum(Amounts), and as number for sum(Inventory). As you can see, I have tried to set the formatting in the expression, and I have set Number Format Settings in the Number tab to 'Expression Default', but this has not worked. Does anyone know of a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2014 20:59:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-01T20:59:01Z</dc:date>
    <item>
      <title>Conditional expression number formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754095#M268641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My chart has a conditional expression, that is really two different expressions. The expression used depends on setting a variable elsewhere. It looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(vExpression='Total Spending',num(sum(Amounts),'$#,###,###'),&lt;/P&gt;&lt;P&gt;if(vExpression='Inventory',sum(Inventory),&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have enabled Values on Data Points, and I want the values to be formatted as $ for sum(Amounts), and as number for sum(Inventory). As you can see, I have tried to set the formatting in the expression, and I have set Number Format Settings in the Number tab to 'Expression Default', but this has not worked. Does anyone know of a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 20:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754095#M268641</guid>
      <dc:creator />
      <dc:date>2014-12-01T20:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression number formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754096#M268642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if('$(vExpression)'=......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 21:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754096#M268642</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-12-01T21:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression number formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754097#M268643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't work! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 21:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754097#M268643</guid>
      <dc:creator />
      <dc:date>2014-12-01T21:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression number formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754098#M268644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if($(vExpression)= ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 21:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754098#M268644</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-12-01T21:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression number formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754099#M268645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't work, chart changes to 'No data to display'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 21:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754099#M268645</guid>
      <dc:creator />
      <dc:date>2014-12-01T21:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression number formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754100#M268646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if possible, post a small example of your Qlik doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 22:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754100#M268646</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-12-01T22:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression number formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754101#M268647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit of a guess but how about converting the output to text, something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;STRONG&gt;=if(vExpression='Total Spending',text(num(sum(Amounts),'$#,###,###'))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;EM&gt;if(vExpression='Inventory',text(sum(Inventory)),&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 22:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754101#M268647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-01T22:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression number formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754102#M268648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Hi,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Crete a variable using below exression&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;vTest=sum(if($(vExpression)='Total Spending',Amounts,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;if($(vExpression)='Inventory',Inventory))&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;then use thebelow condition in you calculaiton&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=if($(vExpression)='Total Spending',num($(vTest),'$#,###,###')&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;if($(vExpression)='Inventory',$(vTest)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Hope this helps. Pleas check for any missing braces.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;BR,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;chinna&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 03:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754102#M268648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-02T03:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression number formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754103#M268649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression looks OK, except that the variable may need to be enclosed in quotes and a $ expansion (depending on how the variable is defined), and you need to make sure that the format on the Number tab is set to 'Expression Default'. Otherwise the setting in the Number tab overrides the format in your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you may need to explicitly format the second sum (eg&amp;nbsp; num(sum(Inventory), '# ##0')&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 05:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754103#M268649</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-12-02T05:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression number formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754104#M268650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, both Bill and Chinna's solutions resulted in 'No Data to Display'. And thank you Jonathan, I made sure that "expression default" was selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to post a scrambled copy of my QVW soon. In the meantime, thank you all for your helpful responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 17:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754104#M268650</guid>
      <dc:creator />
      <dc:date>2014-12-02T17:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression number formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754105#M268651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever manage to find a way to get this to work? I am having the same problem now and wondering if there is a way to sort it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-number-formatting/m-p/754105#M268651</guid>
      <dc:creator />
      <dc:date>2015-04-22T09:57:43Z</dc:date>
    </item>
  </channel>
</rss>

