<?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 do you dynamically set a number format in a linechart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67063#M4445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Colm,&lt;/P&gt;&lt;P&gt;It looks like it should work to me.&amp;nbsp; The True() looks like it is just for testing - how are you getting the value of the variable in the If statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2018 18:37:38 GMT</pubDate>
    <dc:creator>john_obrien</dc:creator>
    <dc:date>2018-03-07T18:37:38Z</dc:date>
    <item>
      <title>How do you dynamically set a number format in a linechart</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67062#M4444</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;I have a line chart where I want to set the number format dynamically based on a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my measure I want to be be able to toggle between &lt;STRONG&gt;Num(Sum(Sales), '0.000')&lt;/STRONG&gt; or &lt;STRONG&gt;Num(Sum(Sales), '$#0.00')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of these measure work individually. However, when I put them in an if statement, the number format stops applying:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If( True(), Num(Sum(Sales), '0.000') , Num(Sum(Sales), '$#0.00'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any idea how I can get this resolved?&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, 07 Mar 2018 17:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67062#M4444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-07T17:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you dynamically set a number format in a linechart</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67063#M4445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Colm,&lt;/P&gt;&lt;P&gt;It looks like it should work to me.&amp;nbsp; The True() looks like it is just for testing - how are you getting the value of the variable in the If statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67063#M4445</guid>
      <dc:creator>john_obrien</dc:creator>
      <dc:date>2018-03-07T18:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you dynamically set a number format in a linechart</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67064#M4446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. The True() is just for testing - I want to get the expression working with that before looking into the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can reproduce the behavior I'm looking on Qlik Sense Feburary 2018 edition with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE &lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Item,Sales&lt;/P&gt;&lt;P&gt;A, 100&lt;/P&gt;&lt;P&gt;B, 200&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Charts:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Line chart one (working, formatted with dollar)&lt;/P&gt;&lt;P&gt;Dimension: Item&lt;/P&gt;&lt;P&gt;Measure: Num(Sum(Sales),'$#.00')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line chart two (working, formatted with four decimals)&lt;/P&gt;&lt;P&gt;Dimension: Item&lt;/P&gt;&lt;P&gt;Measure: Num(Sum(Sales),'#.0000')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line chart three (not working, if statement)&lt;/P&gt;&lt;P&gt;Dimension: Item&lt;/P&gt;&lt;P&gt;Measure: If(True(), Num(Sum(Sales),'$#.00'), Num(Sum(Sales),'#.0000'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all cases, the number formatting dropdown on the measure is set to 'Auto'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 10:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67064#M4446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T10:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you dynamically set a number format in a linechart</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67065#M4447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is True() evaluating? Won't it always return "-1" in your expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 14:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67065#M4447</guid>
      <dc:creator>hacr</dc:creator>
      <dc:date>2018-03-08T14:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you dynamically set a number format in a linechart</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67066#M4448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I've just added the true() as a test. In my real expression I would have a variable here that would vary between true() and false().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 14:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67066#M4448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T14:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do you dynamically set a number format in a linechart</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67067#M4449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create 2 buttons to toggle between.&lt;/P&gt;&lt;P&gt;Try extension &lt;A href="http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8" title="http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8"&gt;http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a variable named vVar for buttons with values 1 and 2, then your expression will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(vVar = 1, &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Num(Sum(Sales), '0.000') , Num(Sum(Sales), '$#0.00') &lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 14:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67067#M4449</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2018-03-08T14:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do you dynamically set a number format in a linechart</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67068#M4450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Colm,&lt;/P&gt;&lt;P&gt;I tried it and got it to work when the Number Formatting for the column was set to Auto or Measure expression.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expression formatting.PNG" class="jive-image image-1" src="/legacyfs/online/195804_expression formatting.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you have any luck yet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 02:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67068#M4450</guid>
      <dc:creator>john_obrien</dc:creator>
      <dc:date>2018-03-09T02:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you dynamically set a number format in a linechart</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67069#M4451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, that's weird! I have the exact same set up and yet the formatting is not being applied. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="20180309.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195876_20180309.PNG" style="height: 396px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm on Qlik Sense Desktop Februry 2018 (12.5.2), what version are you on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="version.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/195877_version.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 14:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-dynamically-set-a-number-format-in-a-linechart/m-p/67069#M4451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-09T14:26:02Z</dc:date>
    </item>
  </channel>
</rss>

