<?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 How to convert days into month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-convert-days-into-month/m-p/1674233#M51134</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have to create a measure where I need to divide the sum(sales) by no of months passed.&lt;/P&gt;&lt;P&gt;Data is based on fiscal year, so if we are considering FY20, then it should count Apr-19 to Jan-20, total 10 months, plus it should convert the no of days passed in Feb to months, so around 10.3. how to achieve that.&lt;/P&gt;&lt;P&gt;Below is the expression, in which I have to consider above condition, please suggest, currently I am just taking max year, current month.&lt;/P&gt;&lt;P&gt;=(SUM({$&amp;lt;fYear={'$(vMaxYear)'},FMonth={'$(vMaxMonth)'}&amp;gt;}sales) / count(distinct ro_code))/1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:18:25 GMT</pubDate>
    <dc:creator>abc_18</dc:creator>
    <dc:date>2024-11-16T03:18:25Z</dc:date>
    <item>
      <title>How to convert days into month</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-days-into-month/m-p/1674233#M51134</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have to create a measure where I need to divide the sum(sales) by no of months passed.&lt;/P&gt;&lt;P&gt;Data is based on fiscal year, so if we are considering FY20, then it should count Apr-19 to Jan-20, total 10 months, plus it should convert the no of days passed in Feb to months, so around 10.3. how to achieve that.&lt;/P&gt;&lt;P&gt;Below is the expression, in which I have to consider above condition, please suggest, currently I am just taking max year, current month.&lt;/P&gt;&lt;P&gt;=(SUM({$&amp;lt;fYear={'$(vMaxYear)'},FMonth={'$(vMaxMonth)'}&amp;gt;}sales) / count(distinct ro_code))/1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-days-into-month/m-p/1674233#M51134</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2024-11-16T03:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert days into month</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-days-into-month/m-p/1674368#M51156</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can u please elaborate do want to divide&amp;nbsp; Sum(sales) by number why are you considering count(id)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;If(you want the only latest year sales)&lt;/P&gt;&lt;P&gt;for month calculation you can use this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Date={"&amp;gt;=$(=YearStart(Max(Date)))&amp;lt;=$(=Monthend(Max(Date),-1))"}&amp;gt;}distinct Month)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(Count({&amp;lt;Date={"&amp;gt;=$(=Monthstart(Max(Date)))&amp;lt;=$(=(Max(Date)))"}&amp;gt;}distinct Day)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(Monthend(Max(Date))-Monthstart(Max(Date))))&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 12:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-days-into-month/m-p/1674368#M51156</guid>
      <dc:creator>Kashyap_R</dc:creator>
      <dc:date>2020-02-11T12:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert days into month</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-days-into-month/m-p/1674732#M51206</link>
      <description>&lt;P&gt;Hi Kashyap,&lt;/P&gt;&lt;P&gt;Thank you for the response, I tried the below expression and for days passe,&amp;nbsp; for current month it's working fine, for ex:-&lt;/P&gt;&lt;P&gt;If I select FY 19-20, then it should consider 10 months completed+No of days passed in Feb month =around 10.3&lt;/P&gt;&lt;P&gt;But if I select FY 18-19, it should give me 12 months, but it's giving me 12.3, I tried different expression but still not working&amp;nbsp; for me, can you please suggest?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 10:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-days-into-month/m-p/1674732#M51206</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2020-02-12T10:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert days into month</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-days-into-month/m-p/1674752#M51208</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try this change the year according to fiscal year&lt;/P&gt;&lt;P&gt;if(Year(Max(Date))=Year(Max(All Date)),&lt;BR /&gt;(Count({&amp;lt;Date={"&amp;gt;=$(=YearStart(Max(Date)))&amp;lt;=$(=Monthend(Max(Date),-1))"}&amp;gt;}distinct Month)&lt;BR /&gt;+&lt;BR /&gt;(Count({&amp;lt;Date={"&amp;gt;=$(=Monthstart(Max(Date)))&amp;lt;=$(=(Max(Date)))"}&amp;gt;}distinct Day)&lt;BR /&gt;/&lt;BR /&gt;(Monthend(Max(Date))-Monthstart(Max(Date))))),&lt;BR /&gt;Count({&amp;lt;Date={"&amp;gt;=$(=YearStart(Max(Date)))&amp;lt;=$(=Yearend(Max(Date)))"}&amp;gt;}distinct Month))&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 10:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-days-into-month/m-p/1674752#M51208</guid>
      <dc:creator>Kashyap_R</dc:creator>
      <dc:date>2020-02-12T10:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert days into month</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-days-into-month/m-p/1675162#M51263</link>
      <description>&lt;P&gt;Hi Kashyap,&lt;/P&gt;&lt;P&gt;Thank you very much, it's working as expected.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 07:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-days-into-month/m-p/1675162#M51263</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2020-02-13T07:36:57Z</dc:date>
    </item>
  </channel>
</rss>

