<?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 to do this? Round Inside Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-do-this-Round-Inside-Set-Analysis/m-p/1636645#M47427</link>
    <description>&lt;P&gt;It worked sunny_talwar!!&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 11:56:43 GMT</pubDate>
    <dc:creator>brunolovatti</dc:creator>
    <dc:date>2019-10-17T11:56:43Z</dc:date>
    <item>
      <title>How to do this? Round Inside Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-do-this-Round-Inside-Set-Analysis/m-p/1636295#M47402</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 options in this post, 2 works as expected and 1 does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) THIS WORKS AND DOES NOT RESPECT THE FILTER APPLIED BY THE USER (OK ITS IS CORRECT)&lt;/P&gt;&lt;P&gt;In the graph:&lt;/P&gt;&lt;P&gt;sum(&lt;BR /&gt;{1}&lt;BR /&gt;if(&lt;BR /&gt;([Rev Prc - Rms Envia]=0 and round([Rev Prc - Mrg Real Var],0.01)&amp;lt;round([Rev Prc - Mrg Cad Var],0.01))&lt;BR /&gt;,1,0 )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) THIS WORKS DOES NOT RESPECT THE FILTER APPLIED BY THE USER (OK ITS IS CORRECT)&lt;/P&gt;&lt;P&gt;In the graph:&lt;/P&gt;&lt;P&gt;count(&lt;BR /&gt;{1&amp;lt;&lt;BR /&gt;[Rev Prc - Rms Envia]={0}&lt;BR /&gt;,Rev Prc - Mrg Real Var] = {"&amp;lt;[Rev Prc - Mrg Cad Var]"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;[Rev Prc - RowID]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Round In the editor:&lt;/P&gt;&lt;P&gt;num([Rev Prc - Mrg Real Var],'#.00') as "Rev Prc - Mrg Real Var",&lt;BR /&gt;num([Rev Prc - Mrg Cad Var],'#.00') as "Rev Prc - Mrg Cad Var",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) THIS WORKS TO COUNT CORRECTLY EXCEPT &lt;STRONG&gt;&lt;U&gt;IT DOES RESPECT THE FILTER APPLIED BY THE USER (SHOULD NOT)&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;count(&lt;BR /&gt;{1&amp;lt;&lt;BR /&gt;[Rev Prc - Rms Envia]={0}&lt;BR /&gt;,[Rev Prc - RowID] = {"=round([Rev Prc - Mrg Real Var],0.01)&amp;lt;round([Rev Prc - Mrg Cad Var],0.01)"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;[Rev Prc - RowID]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem with the filter is in this line&lt;/P&gt;&lt;P&gt;,[Rev Prc - RowID] = {"=round([Rev Prc - Mrg Real Var],0.01)&amp;lt;round([Rev Prc - Mrg Cad Var],0.01)"}&lt;/P&gt;&lt;P&gt;But it does work and count correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if there is a way to do it using the option 3.&lt;/P&gt;&lt;P&gt;Option 1 ok.&lt;/P&gt;&lt;P&gt;Option 2 ok. but I need to create more columns in the editor.&lt;/P&gt;&lt;P&gt;Option 3 works but does respect the filter (should not).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 18:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-do-this-Round-Inside-Set-Analysis/m-p/1636295#M47402</guid>
      <dc:creator>brunolovatti</dc:creator>
      <dc:date>2019-10-16T18:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this? Round Inside Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-do-this-Round-Inside-Set-Analysis/m-p/1636307#M47403</link>
      <description>&lt;P&gt;May be try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count({1&amp;lt;[Rev Prc - Rms Envia] = {0}, [Rev Prc - RowID] = {"=Only({1} Round([Rev Prc - Mrg Real Var], 0.01) &amp;lt; Round([Rev Prc - Mrg Cad Var], 0.01))"}&amp;gt;} [Rev Prc - RowID])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 19:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-do-this-Round-Inside-Set-Analysis/m-p/1636307#M47403</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-16T19:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this? Round Inside Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-do-this-Round-Inside-Set-Analysis/m-p/1636645#M47427</link>
      <description>&lt;P&gt;It worked sunny_talwar!!&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 11:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-do-this-Round-Inside-Set-Analysis/m-p/1636645#M47427</guid>
      <dc:creator>brunolovatti</dc:creator>
      <dc:date>2019-10-17T11:56:43Z</dc:date>
    </item>
  </channel>
</rss>

