<?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: num function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/num-function/m-p/1533668#M40261</link>
    <description>&lt;P&gt;Could you try this,&lt;/P&gt;&lt;P&gt;=If(Bookings.Event = 'Sign' and Type='Digital',&lt;BR /&gt;Num(&lt;BR /&gt;if(SystemMapping.Group = Interest.Business_Unit,&lt;BR /&gt;if(CreatedDate &amp;lt; EventDate,&lt;BR /&gt;if(EventDate-CreatedDate &amp;gt; 0&lt;BR /&gt;and EventDate-CreatedDate &amp;lt; 365&lt;BR /&gt;Aggr(Only({&amp;lt;SaleID = e({1&amp;lt;Bookings.Event = {'Return'},Source__c=&amp;gt;})&amp;gt;}SellingPrice),saleid),'RM #,##0.0 mil;(RM #,##0.0) mil'))))))&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jan 2019 08:30:19 GMT</pubDate>
    <dc:creator>anushree1</dc:creator>
    <dc:date>2019-01-23T08:30:19Z</dc:date>
    <item>
      <title>num function</title>
      <link>https://community.qlik.com/t5/App-Development/num-function/m-p/1533643#M40260</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;based on my code, which part is wrong when i tried to change the format of number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=If(Bookings.Event = 'Sign' and Type='Digital',&lt;BR /&gt;Num(sum({&amp;lt;Source__c=&amp;gt;}&lt;BR /&gt;if(SystemMapping.Group = Interest.Business_Unit,&lt;BR /&gt;if(CreatedDate &amp;lt; EventDate,&lt;BR /&gt;if(EventDate-CreatedDate &amp;gt; 0&lt;BR /&gt;and EventDate-CreatedDate &amp;lt; 365&lt;BR /&gt;Aggr(Only({&amp;lt;SaleID = e({1&amp;lt;Bookings.Event = {'Return'}&amp;gt;})&amp;gt;}SellingPrice),saleid),'RM #,##0.0 mil;(RM #,##0.0) mil'))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to find a way but is not working&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/num-function/m-p/1533643#M40260</guid>
      <dc:creator>awalhashim</dc:creator>
      <dc:date>2024-11-16T06:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: num function</title>
      <link>https://community.qlik.com/t5/App-Development/num-function/m-p/1533668#M40261</link>
      <description>&lt;P&gt;Could you try this,&lt;/P&gt;&lt;P&gt;=If(Bookings.Event = 'Sign' and Type='Digital',&lt;BR /&gt;Num(&lt;BR /&gt;if(SystemMapping.Group = Interest.Business_Unit,&lt;BR /&gt;if(CreatedDate &amp;lt; EventDate,&lt;BR /&gt;if(EventDate-CreatedDate &amp;gt; 0&lt;BR /&gt;and EventDate-CreatedDate &amp;lt; 365&lt;BR /&gt;Aggr(Only({&amp;lt;SaleID = e({1&amp;lt;Bookings.Event = {'Return'},Source__c=&amp;gt;})&amp;gt;}SellingPrice),saleid),'RM #,##0.0 mil;(RM #,##0.0) mil'))))))&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 08:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/num-function/m-p/1533668#M40261</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-01-23T08:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: num function</title>
      <link>https://community.qlik.com/t5/App-Development/num-function/m-p/1533670#M40262</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your issue is related to the parantheses mostly. Anyways, you could also simplify your expression. Please try:&lt;/P&gt;&lt;PRE&gt;=num(
	If(
    	Bookings.Event = 'Sign' and Type='Digital'
		and SystemMapping.Group = Interest.Business_Unit
		and CreatedDate &amp;lt; EventDate
		and (EventDate-CreatedDate) &amp;gt; 0
		and (EventDate-CreatedDate) &amp;lt; 365,
		sum({&amp;lt;Source__c=&amp;gt;} Aggr(Only({&amp;lt;SaleID = e({1&amp;lt;Bookings.Event = {'Return'}&amp;gt;})&amp;gt;}SellingPrice),saleid))
	)
,'RM #,##0.0 mil;(RM #,##0.0) mil')&lt;/PRE&gt;&lt;P&gt;Also, this one could further be simplified by inserting all those if statements into the set analysis.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 08:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/num-function/m-p/1533670#M40262</guid>
      <dc:creator>pasi_lehtinen</dc:creator>
      <dc:date>2019-01-23T08:33:55Z</dc:date>
    </item>
  </channel>
</rss>

