<?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: Counting the no. of Days in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Counting-the-no-of-Days/m-p/1943295#M77727</link>
    <description>&lt;P&gt;Are you going to calculate that in report level or in load script? Because there are, again, multiple ways. If you calculate this target-per-day in report, suggested solution should work. If you want that in load, depends on your data model structure, you can merge those tables into one and calculate that target-per-day, or you can make new 'temporal' table, with month and target, calculate target-per-day and then join to one of your main tables (and drop that temp table as not needed).&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 10:45:01 GMT</pubDate>
    <dc:creator>justISO</dc:creator>
    <dc:date>2022-06-14T10:45:01Z</dc:date>
    <item>
      <title>Counting the no. of Days</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-the-no-of-Days/m-p/1943129#M77714</link>
      <description>&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a field which contains target values corresponding to months like for example:&lt;/P&gt;
&lt;P&gt;Month&amp;nbsp; &amp;nbsp; Target&lt;/P&gt;
&lt;P&gt;Jan&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/P&gt;
&lt;P&gt;Feb&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;200&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to divide this target by no. of days to get day wise target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example in Feb, I want to divide 200 by 28.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I do it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 06:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-the-no-of-Days/m-p/1943129#M77714</guid>
      <dc:creator>hasmyt</dc:creator>
      <dc:date>2022-06-14T06:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Counting the no. of Days</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-the-no-of-Days/m-p/1943154#M77717</link>
      <description>&lt;P&gt;Hi, it depends a bit of how your Month field are made, because if it coming from date field, you can simply take days from end of month:&lt;/P&gt;
&lt;P&gt;sum(Target) / day(monthend([date field]))&lt;/P&gt;
&lt;P&gt;If you only have Month name, you need incorporate conversion from month name to date first, with something like this:&lt;/P&gt;
&lt;P&gt;MakeDate(2022, Num(Month(Date#([Month field], 'MMMM'))), 1)&lt;/P&gt;
&lt;P&gt;and insert that as [date field] in first formula.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 07:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-the-no-of-Days/m-p/1943154#M77717</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-06-14T07:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Counting the no. of Days</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-the-no-of-Days/m-p/1943237#M77725</link>
      <description>&lt;P&gt;Got it. But I have date field coming from one table and the target field coming from another, so how do I go about it?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-the-no-of-Days/m-p/1943237#M77725</guid>
      <dc:creator>hasmyt</dc:creator>
      <dc:date>2022-06-14T09:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Counting the no. of Days</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-the-no-of-Days/m-p/1943295#M77727</link>
      <description>&lt;P&gt;Are you going to calculate that in report level or in load script? Because there are, again, multiple ways. If you calculate this target-per-day in report, suggested solution should work. If you want that in load, depends on your data model structure, you can merge those tables into one and calculate that target-per-day, or you can make new 'temporal' table, with month and target, calculate target-per-day and then join to one of your main tables (and drop that temp table as not needed).&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 10:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-the-no-of-Days/m-p/1943295#M77727</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-06-14T10:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Counting the no. of Days</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-the-no-of-Days/m-p/1943744#M77764</link>
      <description>&lt;P&gt;Worked perfectly. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 04:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-the-no-of-Days/m-p/1943744#M77764</guid>
      <dc:creator>hasmyt</dc:creator>
      <dc:date>2022-06-15T04:54:47Z</dc:date>
    </item>
  </channel>
</rss>

