<?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: if first day of month.. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017319#M84010</link>
    <description>&lt;P&gt;You cannot have such a function on the dimension. The function would need to return multiple dates - for example&lt;/P&gt;&lt;P&gt;Function('15.11.2022') should return all dates between '15.11.2022' and '01.12.2022'. And that's not possible.&lt;/P&gt;&lt;P&gt;But you could try something along the following:&lt;BR /&gt;Dimension: MSDatum&lt;BR /&gt;Measure:&lt;BR /&gt;RangeSum(Above(total&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Sum(Betrag),&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;If(MSDatum=MonthStart(MSDatum),1,0),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;If(MSDatum=MonthStart(MSDatum),MSDatum-MonthStart(MSDatum-1),MSDatum-MonthStart(MSDatum)+1)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;))&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2022 08:34:50 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2022-12-16T08:34:50Z</dc:date>
    <item>
      <title>if first day of month..</title>
      <link>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017016#M83979</link>
      <description>&lt;P&gt;&lt;SPAN&gt;*english below*&lt;/SPAN&gt;&lt;BR /&gt;Hallo zusammen,&lt;BR /&gt;ich brauche für meinen Bericht eine Abfrage in QlikView.&lt;/P&gt;
&lt;P&gt;Wenn der erste Tag des Monats, dann sollen die Tage des Vormonats genommen werden.&lt;BR /&gt;Bsp: Tag: 01.12.2022 -&amp;gt; Werte von 01.11.2022 bis 30.11.2022&lt;/P&gt;
&lt;P&gt;Ab dem zweiten Tag des Monats die Daten des aktuellen Monats heranziehen. Hierzu habe ich schon folgende Formel, die auch das gewünschte Ergebnis liefert:&lt;BR /&gt;=if(Month(MSDatum)=Month(Today()) AND Year(MSDatum)=Year(Today()),'Ja')&lt;/P&gt;
&lt;P&gt;Vielen Dank im Voraus.&lt;/P&gt;
&lt;P&gt;Gruß Genclik&lt;/P&gt;
&lt;P&gt;**&lt;/P&gt;
&lt;P&gt;Hello, everyone,&lt;BR /&gt;I need a query in QlikView for my report.&lt;/P&gt;
&lt;P&gt;If the first day of the month, then the days of the previous month should be taken.&lt;BR /&gt;Example: Day: 01.12.2022 -&amp;gt; values from 01.11.2022 to 30.11.2022&lt;BR /&gt;From the second day of the month, use the current month's data. For this I already have the following formula, which also gives the desired result:&lt;BR /&gt;=if(Month(MSDatum)=Month(Today()) AND Year(MSDatum)=Year(Today()),'Ja')&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 12:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017016#M83979</guid>
      <dc:creator>GENClik60</dc:creator>
      <dc:date>2022-12-15T12:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: if first day of month..</title>
      <link>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017044#M83984</link>
      <description>&lt;P&gt;So you want the same Euro to appear on two different rows in the chart? E.g. the value for 15.11.2022 should be included in BOTH the following dates: 15.11.2022 and 01.12.2022.&lt;/P&gt;&lt;P&gt;I don't think it is possible to do that using an expression in the UI dimension. (Maybe it is, but then the expression would be very complicated). So I would do it in the data model instead.&lt;/P&gt;&lt;P&gt;Let's assume that you have a master calendar called "Kalender" that has the fields "Datum", "Monat", etc.&amp;nbsp;Then you can create a second table using the following Load statements:&lt;/P&gt;&lt;P&gt;AkkumulationsKalender:&lt;BR /&gt;Load&lt;BR /&gt;&amp;nbsp; &amp;nbsp;AddMonths(MonthStart(Datum),1) as AkkumulationsDatum,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Datum&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Resident "Kalender";&lt;BR /&gt;Load&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Datum as AkkumulationsDatum,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Datum&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Resident "Kalender" Where MonthStart(Datum) &amp;lt;&amp;gt; Datum;&lt;/P&gt;&lt;P&gt;Then you can use the "AkkumulationsDatum" to do exactly what you want. See also about the As-Of table, which is similar: &lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 08:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017044#M83984</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-12-16T08:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: if first day of month..</title>
      <link>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017064#M83985</link>
      <description>&lt;P&gt;hello,&lt;BR /&gt;thank you for your answer, but its not what i want.&lt;/P&gt;
&lt;P&gt;I want if its the first day of month, then take the data from the&amp;nbsp;previous month.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;date 05.12.2022 -&amp;gt; data from 01.12, 02.12, 03.12, 04.12, 05.12&lt;BR /&gt;date 01.12.2022 -&amp;gt; data from 01.11, 02.11, 03.11, 04.11,....,30.11&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017064#M83985</guid>
      <dc:creator>GENClik60</dc:creator>
      <dc:date>2022-12-15T14:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: if first day of month..</title>
      <link>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017115#M83990</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;AkkumulationsDatum:&lt;BR /&gt;Load * Where not (Datum = MonthStart(Datum) and Datum = AkkumulationsDatum);&lt;BR /&gt;Load&lt;BR /&gt;Datum - IterNo() + 1 as Datum,&lt;BR /&gt;Datum as AkkumulationsDatum&lt;BR /&gt;Resident Kalender&lt;BR /&gt;While Datum - IterNo() + 1 &amp;gt;= MonthStart(Datum-1)&lt;BR /&gt;Order By Datum&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 15:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017115#M83990</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-12-15T15:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: if first day of month..</title>
      <link>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017298#M84008</link>
      <description>&lt;P&gt;hey hic,&lt;BR /&gt;is it possible to add the formula in the chart? In the View is a master calender but its in the hidden script because the script is external..&lt;BR /&gt;I have the field "MSDatum", which shows me the data over midnight.&amp;nbsp;&lt;BR /&gt;I update the data in the view, e.g. date 16.12.2022 -&amp;gt; MSDate 15.12.2022&lt;BR /&gt;And then i need when date 01.12.2022 -&amp;gt; MSDate 30.11.2022; Then i need the data from MSDate from 01.11.2022 till end November (30.11.2022)&lt;BR /&gt;&lt;BR /&gt;i hope i could explain it.&lt;BR /&gt;greetings GENClik&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 07:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017298#M84008</guid>
      <dc:creator>GENClik60</dc:creator>
      <dc:date>2022-12-16T07:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: if first day of month..</title>
      <link>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017319#M84010</link>
      <description>&lt;P&gt;You cannot have such a function on the dimension. The function would need to return multiple dates - for example&lt;/P&gt;&lt;P&gt;Function('15.11.2022') should return all dates between '15.11.2022' and '01.12.2022'. And that's not possible.&lt;/P&gt;&lt;P&gt;But you could try something along the following:&lt;BR /&gt;Dimension: MSDatum&lt;BR /&gt;Measure:&lt;BR /&gt;RangeSum(Above(total&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Sum(Betrag),&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;If(MSDatum=MonthStart(MSDatum),1,0),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;If(MSDatum=MonthStart(MSDatum),MSDatum-MonthStart(MSDatum-1),MSDatum-MonthStart(MSDatum)+1)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;))&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 08:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017319#M84010</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-12-16T08:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: if first day of month..</title>
      <link>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017342#M84012</link>
      <description>&lt;P&gt;i dont want the dates between '15.11.2022' and '01.12.2022'.&lt;BR /&gt;The return when date '01.12.2022' is should be the dates between 01.11.2022 - 30.11.2022.&lt;/P&gt;
&lt;P&gt;Means if first day of month then take the dates the month before..&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 09:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017342#M84012</guid>
      <dc:creator>GENClik60</dc:creator>
      <dc:date>2022-12-16T09:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: if first day of month..</title>
      <link>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017390#M84014</link>
      <description>&lt;P&gt;Oh, yes you do.&lt;/P&gt;&lt;P&gt;You want a Euro that belongs to 15.11.2022 (transaction date) to appear in the sum of all dates between 15.11.2022 and 01.12.2022 (dimension dates). That's what I mean with a function that returns multiple dates. A single transaction date should be linked to multiple&amp;nbsp;dimension dates.&lt;/P&gt;&lt;P&gt;But try using RangeSum(Above(...)) as measure. I think it'll work.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 11:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2017390#M84014</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-12-16T11:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: if first day of month..</title>
      <link>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2018518#M84127</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;i think i have a solution now. i ve changed the formula of the dimension to:&lt;/P&gt;
&lt;P&gt;=if(month(Today()-1)=Month(MSDatum)&lt;BR /&gt;AND&lt;BR /&gt;(year(Today()-1)=year(MSDatum)) ,'Ja', 'Nein')&lt;BR /&gt;&lt;BR /&gt;i hope this will work. (if its work i mark this post as solution)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks anyway hic &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 13:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-first-day-of-month/m-p/2018518#M84127</guid>
      <dc:creator>GENClik60</dc:creator>
      <dc:date>2022-12-20T13:09:40Z</dc:date>
    </item>
  </channel>
</rss>

