<?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: Conditional Number Formatting with Custom Parameter Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633447#M232361</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;Do you have the Number Format Settings in the Number tab set do Expression Default?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikView - Remote Desktop Connection Manager v2.2_2014-05-15_10-27-49.png" class="jive-image" height="312" src="/legacyfs/online/58866_QlikView - Remote Desktop Connection Manager v2.2_2014-05-15_10-27-49.png" style="width: 359px; height: 311.51935483870966px;" width="359" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2014 09:29:47 GMT</pubDate>
    <dc:creator>clisboa_noesis</dc:creator>
    <dc:date>2014-05-15T09:29:47Z</dc:date>
    <item>
      <title>Conditional Number Formatting with Custom Parameter Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633446#M232360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble with conditional number formatting for parameter variables. I have attempted solutions from the following discussion threads without success:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/68781"&gt;Formatting expression for both % and Numbers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/32393"&gt;Conditional Number Formatting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To simplify - let's say I have two variables, 'PCT_VAR' and 'INT_VAR'. PCT_VAR should be represented as a percentage and INT_VAR should be represented as an integer. I have created a variable, 'vMETRIC', to pass as a parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Number Format Settings are set to 'Expression Default'. My expression looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(vMETRIC = 'PCT_VAR', NUM(SUM($(vMETRIC)), '#,###.00%'), &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;NUM(SUM($(vMETRIC)), '#,###')&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried being more explicit with each variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(vMETRIC= 'PCT_VAR', NUM(SUM($(vMETRIC)), '#,###.00%'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(vMETRIC= 'INT_VAR', NUM(SUM($(vMETRIC)), '#,###')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These fail to format PCT_VAR as a percentage (it shows as a decimal). I would appreciate any help figuring this out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I cannot attach the workbook, but will create a 'dummy' workbook with the above example if my explanation was not clear enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 16:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633446#M232360</guid>
      <dc:creator />
      <dc:date>2014-05-14T16:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Number Formatting with Custom Parameter Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633447#M232361</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;Do you have the Number Format Settings in the Number tab set do Expression Default?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikView - Remote Desktop Connection Manager v2.2_2014-05-15_10-27-49.png" class="jive-image" height="312" src="/legacyfs/online/58866_QlikView - Remote Desktop Connection Manager v2.2_2014-05-15_10-27-49.png" style="width: 359px; height: 311.51935483870966px;" width="359" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 09:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633447#M232361</guid>
      <dc:creator>clisboa_noesis</dc:creator>
      <dc:date>2014-05-15T09:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Number Formatting with Custom Parameter Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633448#M232362</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;Check this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; PID, Person, Amount, Metric&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1, Mary , 123.23, 'PCT_VAR'&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1, Collin, 44.33, 'PCT_VAR'&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1, Camaro, 443.2, 'INT_VAR'&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2, Mary, 99.2, 'INT_VAR'&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2, Camaro, 88.99, 'PCT_VAR'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Chart Expression:&lt;/P&gt;&lt;P&gt;if(Metric='PCT_VAR', num(sum(Amount),'####.00%'),num(sum(Amount),'#,###'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 09:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633448#M232362</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2014-05-15T09:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Conditional Number Formatting with Custom Parameter Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633449#M232363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrei, thanks for the response. Unfortunately, my data is quite large and has variables transposed across as columns. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="153" style="border: 1px solid rgb(0, 0, 0); width: 255px; height: 155px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;PID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Person&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;INT_VAR&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;PCT_VAR&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mary&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;157123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;.2342&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Collin&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;415612&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;.3445&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Camaro&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;233345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;.6754&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Mary&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;16664&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;.2312&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Camaro&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1234566&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;.3456&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a variable vMETRIC to pass each data column as a parameter into the chart object. This allows the user to switch between INT_VAR and PCT_VAR at will. This data transition works perfectly, but the number formatting does not work in tandem. Any ideas on how this can be accomplished with the above data structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 14:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633449#M232363</guid>
      <dc:creator />
      <dc:date>2014-05-15T14:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Conditional Number Formatting with Custom Parameter Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633450#M232364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos - yes Expression Default&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 14:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633450#M232364</guid>
      <dc:creator />
      <dc:date>2014-05-15T14:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Conditional Number Formatting with Custom Parameter Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633451#M232365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your PCT_VAR already has the % value you can't use sum(PCT_VAR) in your expression.&lt;/P&gt;&lt;P&gt;That way you're making a sum of % which is probably not what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 14:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633451#M232365</guid>
      <dc:creator>clisboa_noesis</dc:creator>
      <dc:date>2014-05-15T14:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Conditional Number Formatting with Custom Parameter Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633452#M232366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PCT_VAR is a decimal, which results in a percentage after applying the NUM() percent format. I am filtering down to a level in which PCT_VAR is (intentionally) additive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is regarding formatting rather than the variable values themselves. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 20:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633452#M232366</guid>
      <dc:creator />
      <dc:date>2014-05-15T20:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Number Formatting with Custom Parameter Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633453#M232367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether your vMetric could have 'PCT_VAR' and 'INT_VAR'?&lt;/P&gt;&lt;P&gt;If so, it should be ok (in Expression)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;if($(vMetric)='PCT_VAR', num(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;PCT_VAR&lt;/SPAN&gt;),'####.00%'),num(sum(INT_VAR),'#,###'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Andrei&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 12:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Number-Formatting-with-Custom-Parameter-Variable/m-p/633453#M232367</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2014-05-16T12:55:15Z</dc:date>
    </item>
  </channel>
</rss>

