<?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: Error in Expression when trying to handle M or K values together in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005237#M1221516</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Take a look at this post.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Number-formatting-millions-to-billions/m-p/603696" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Number-formatting-millions-to-billions/m-p/603696&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bill&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 11:24:50 GMT</pubDate>
    <dc:creator>Bill_Britt</dc:creator>
    <dc:date>2022-11-16T11:24:50Z</dc:date>
    <item>
      <title>Error in Expression when trying to handle M or K values together</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005226#M1221515</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I am working on an expression in qliksense.&lt;/P&gt;
&lt;P&gt;I have created a variable as below in the script:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Akshaya_0-1668596427567.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93856i1B2B68B535B4B023/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Akshaya_0-1668596427567.png" alt="Akshaya_0-1668596427567.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SET vScaleNumber=if($1&amp;gt;1E6, num($1/1E6,'#,##0.00M')&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,if($1&amp;gt;1E3, num($1/1E3,'#,##0.00K')&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,num($1,'#,##0.00')&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;));&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And based on this variable, i am trying to handle the large numbers in M or K format.&lt;/P&gt;
&lt;P&gt;So if I am writing a simple expression, its working fine as per below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Akshaya_1-1668596616202.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93857iB4FAD48F42377CF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Akshaya_1-1668596616202.png" alt="Akshaya_1-1668596616202.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But if I am trying to include more parameters in the expression, its throwing an error, as per below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Akshaya_2-1668596752793.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93858i9132BF33F160E413/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Akshaya_2-1668596752793.png" alt="Akshaya_2-1668596752793.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I guess comma is causing the issue here, but how to fix it, I am not sure. I tried using 'and' also instead of ',' but no luck.&lt;BR /&gt;Could someone please help me out here with the expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much in Advance!&lt;/P&gt;
&lt;P&gt;Akshaya&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/159137"&gt;@GeorgePhilips23&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 14:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005226#M1221515</guid>
      <dc:creator>Akshaya</dc:creator>
      <dc:date>2022-11-16T14:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression when trying to handle M or K values together</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005237#M1221516</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Take a look at this post.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Number-formatting-millions-to-billions/m-p/603696" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Number-formatting-millions-to-billions/m-p/603696&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bill&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 11:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005237#M1221516</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2022-11-16T11:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression when trying to handle M or K values together</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005319#M1221519</link>
      <description>&lt;P&gt;Hi Bill,&amp;nbsp;&lt;BR /&gt;I checked the link you mentioned, and tried something like that, but no luck. Still stuck.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Akshaya&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 13:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005319#M1221519</guid>
      <dc:creator>Akshaya</dc:creator>
      <dc:date>2022-11-16T13:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression when trying to handle M or K values together</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005339#M1221520</link>
      <description>&lt;P&gt;What you are trying to do isn't possible - at least not as a general solution within a parametrized variable. It will work with a field-reference and with expressions which doesn't contain any comma. The reason is that each included comma is treated as parameter-delimiter of the variable. Unfortunately, there is no way to mask a comma.&lt;/P&gt;
&lt;P&gt;Workarounds may be to replace the comma within the call with another char and replacing it back within the variable or using different functions respectively the syntax within the call to avoid any commas. In regard to your example you may change:&lt;/P&gt;
&lt;P&gt;sum({&amp;lt; F1 = {'x'}, F2 = {'y'}&amp;gt;} F3)&lt;/P&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;sum({&amp;lt; F1 = {'x'} &amp;gt; &lt;STRONG&gt;*&lt;/STRONG&gt; &amp;lt; F2 = {'y'}&amp;gt;} F3)&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 14:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005339#M1221520</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-16T14:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression when trying to handle M or K values together</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005772#M1221532</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for you quick response!&lt;BR /&gt;I tried what you have mentioned above, and it worked but one thing is its giving me the round off values.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Akshaya_0-1668680737217.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93962iEA73ADD560880687/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Akshaya_0-1668680737217.png" alt="Akshaya_0-1668680737217.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As in if I am supposed to get 17.94M so its giving me 18.&lt;BR /&gt;Could you please let me know how can I fix that and avoid that rounding off?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Akshaya&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 10:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005772#M1221532</guid>
      <dc:creator>Akshaya</dc:creator>
      <dc:date>2022-11-17T10:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression when trying to handle M or K values together</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005780#M1221533</link>
      <description>&lt;P&gt;Make sure that your object applies the formatting from the expression and not any default format-setting from the object-properties.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 10:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-when-trying-to-handle-M-or-K-values-together/m-p/2005780#M1221533</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-17T10:35:44Z</dc:date>
    </item>
  </channel>
</rss>

