<?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: Avoid repeatation in formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avoid-repeatation-in-formula/m-p/1550279#M598291</link>
    <description>You could explore the use of calling the formel as a function using a parameter, where the parameter is the MonthNumber. That way you only need to set the MonthNumber once when calling the function.</description>
    <pubDate>Thu, 28 Feb 2019 08:40:24 GMT</pubDate>
    <dc:creator>jfkinspari</dc:creator>
    <dc:date>2019-02-28T08:40:24Z</dc:date>
    <item>
      <title>Avoid repeatation in formula</title>
      <link>https://community.qlik.com/t5/QlikView/Avoid-repeatation-in-formula/m-p/1550235#M598290</link>
      <description>&lt;P&gt;Dear team&lt;/P&gt;&lt;P&gt;Below I have mentioned a formula where I am dividing one formula with another formula. There is one condition is MonthNMum-='01'. Can we change the formula where I will use MonthNum only one time&lt;/P&gt;&lt;P&gt;=(Sum({&amp;lt;[Exec P&amp;amp;L Heading] = {'Gross Profit'},MonthNum={'01'} ,Year ={$(=max(Year))}&amp;gt;}Amount)*-1)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;[Exec P&amp;amp;L Heading] = {'Revenue'},MonthNum={'01'} ,Year ={$(=max(Year))}&amp;gt;}Amount)*-1)&lt;/P&gt;&lt;P&gt;I need formula something similar to mentioned below.&lt;/P&gt;&lt;P&gt;MonthNum='01" then&amp;nbsp;(Sum({&amp;lt;[Exec P&amp;amp;L Heading] = {'Gross Profit'},Year ={$(=max(Year))}&amp;gt;}Amount)*-1)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;[Exec P&amp;amp;L Heading] = {'Revenue'},Year ={$(=max(Year))}&amp;gt;}Amount)*-1)&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;SHamsu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 06:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoid-repeatation-in-formula/m-p/1550235#M598290</guid>
      <dc:creator>shamsu_mk</dc:creator>
      <dc:date>2019-02-28T06:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid repeatation in formula</title>
      <link>https://community.qlik.com/t5/QlikView/Avoid-repeatation-in-formula/m-p/1550279#M598291</link>
      <description>You could explore the use of calling the formel as a function using a parameter, where the parameter is the MonthNumber. That way you only need to set the MonthNumber once when calling the function.</description>
      <pubDate>Thu, 28 Feb 2019 08:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoid-repeatation-in-formula/m-p/1550279#M598291</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2019-02-28T08:40:24Z</dc:date>
    </item>
  </channel>
</rss>

