<?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: Format expression in a label in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Format-expression-in-a-label/m-p/1705959#M506126</link>
    <description>&lt;P&gt;you can try to wrap num() like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=num(Avg(TOTAL Aggr(Avg([Length of Stay - Days]),[Admission Month/Year])), '0,00')&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 28 May 2020 09:24:25 GMT</pubDate>
    <dc:creator>zhadrakas</dc:creator>
    <dc:date>2020-05-28T09:24:25Z</dc:date>
    <item>
      <title>Format expression in a label</title>
      <link>https://community.qlik.com/t5/QlikView/Format-expression-in-a-label/m-p/1705957#M506125</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this can be done but i'm using the following expression as a label so that users can quickly see the numeric value in a graph but i want to limit the formatting to only 2 decimal places.&lt;/P&gt;&lt;P&gt;So the label expression is:&amp;nbsp;=Concat('Mean Average Length of stay' &amp;amp; ' - ' &amp;amp; Avg(TOTAL Aggr(Avg([Length of Stay - Days]),[Admission Month/Year])))&lt;/P&gt;&lt;P&gt;Whilst the expression its displaying is&amp;nbsp;Avg(TOTAL Aggr(Avg([Length of Stay - Days]),[Admission Month/Year]))&lt;/P&gt;&lt;P&gt;and i get this image:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LOS.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34506iE4ED3404A8E9B928/image-size/large?v=v2&amp;amp;px=999" role="button" title="LOS.png" alt="LOS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now thats lovely but as i say i'd like to limit that output to just 2 decimal places so that it shows as 12.42&lt;/P&gt;&lt;P&gt;Can it be done?&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 09:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-expression-in-a-label/m-p/1705957#M506125</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2020-05-28T09:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Format expression in a label</title>
      <link>https://community.qlik.com/t5/QlikView/Format-expression-in-a-label/m-p/1705959#M506126</link>
      <description>&lt;P&gt;you can try to wrap num() like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=num(Avg(TOTAL Aggr(Avg([Length of Stay - Days]),[Admission Month/Year])), '0,00')&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 May 2020 09:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-expression-in-a-label/m-p/1705959#M506126</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2020-05-28T09:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Format expression in a label</title>
      <link>https://community.qlik.com/t5/QlikView/Format-expression-in-a-label/m-p/1705978#M506127</link>
      <description>&lt;P&gt;No, i'm missing something, when i try the whole expression in the label field :&lt;/P&gt;&lt;P&gt;=Concat('Mean Average Length of stay' &amp;amp; ' - ' &amp;amp; =Num(Avg(TOTAL Aggr(Avg([Length of Stay - Days]),[Admission Month/Year])),'0,0,0'))&lt;/P&gt;&lt;P&gt;I just get 'Error in expression'&lt;/P&gt;&lt;P&gt;Probably just missing a simple piece of syntax but i cant see it this morning&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 10:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-expression-in-a-label/m-p/1705978#M506127</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2020-05-28T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Format expression in a label</title>
      <link>https://community.qlik.com/t5/QlikView/Format-expression-in-a-label/m-p/1705983#M506128</link>
      <description>&lt;P&gt;try these&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Concat('Mean Average Length of stay' &amp;amp; ' - ' &amp;amp; Num(Avg(TOTAL Aggr(Avg([Length of Stay - Days]),[Admission Month/Year])),'0,00'))

=Concat('Mean Average Length of stay' &amp;amp; ' - ' &amp;amp; Num(Avg(TOTAL Aggr(Avg([Length of Stay - Days]),[Admission Month/Year])),'0.00'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 10:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-expression-in-a-label/m-p/1705983#M506128</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2020-05-28T10:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Format expression in a label</title>
      <link>https://community.qlik.com/t5/QlikView/Format-expression-in-a-label/m-p/1705985#M506129</link>
      <description>&lt;P&gt;It was the second one.&lt;/P&gt;&lt;P&gt;Thank you so much, very appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 10:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-expression-in-a-label/m-p/1705985#M506129</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2020-05-28T10:34:40Z</dc:date>
    </item>
  </channel>
</rss>

