<?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: Weekly Monthly, Quarterly, Yearly Cumulative Sum till date selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-Monthly-Quarterly-Yearly-Cumulative-Sum-till-date/m-p/2813434#M89113</link>
    <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for responding but this does not work when I select second or third or fourth week number and it showa only that perticular week data and same thing goes if i select 1 perticular day&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 08:52:14 GMT</pubDate>
    <dc:creator>vishal097</dc:creator>
    <dc:date>2022-10-03T08:52:14Z</dc:date>
    <item>
      <title>Weekly Monthly, Quarterly, Yearly Cumulative Sum till date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-Monthly-Quarterly-Yearly-Cumulative-Sum-till-date/m-p/2811429#M88998</link>
      <description>&lt;P&gt;Hello There,&lt;/P&gt;&lt;P&gt;I am trying to write a measure which will act as&amp;nbsp;&lt;/P&gt;&lt;P&gt;if selected &lt;STRONG&gt;Year = 2022&lt;/STRONG&gt; then&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Weekly Cumulative = Values from start of the year till end of the year&lt;/LI&gt;&lt;LI&gt;Month&amp;nbsp;Cumulative = Values from start of the year&amp;nbsp;till end of the year&lt;/LI&gt;&lt;LI&gt;Quarter&amp;nbsp;Cumulative = Values from start of the year&amp;nbsp;till end of the year&lt;/LI&gt;&lt;LI&gt;Yearly&amp;nbsp;Cumulative = Values from start of the year&amp;nbsp;till end of the year&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if&amp;nbsp;selected &lt;STRONG&gt;Year = 2022 &lt;/STRONG&gt;and &lt;STRONG&gt;Quarter = Q2&amp;nbsp;&lt;/STRONG&gt;then&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Weekly Cumulative = Values from April 2022 of the year till June 2022&lt;/LI&gt;&lt;LI&gt;Month&amp;nbsp;Cumulative = Values from April 2022 of the year till June 2022&lt;/LI&gt;&lt;LI&gt;Quarter&amp;nbsp;Cumulative = Values from April 2022 of the year till June 2022&lt;/LI&gt;&lt;LI&gt;Yearly&amp;nbsp;Cumulative = Values from Jan 2022 of the year till June 2022&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if selected, &lt;STRONG&gt;Year = 2022&lt;/STRONG&gt; and &lt;STRONG&gt;Quarter = Q2&lt;/STRONG&gt; and &lt;STRONG&gt;Month = May &lt;/STRONG&gt;then&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Weekly Cumulative = Values from May 2022 of the year till May 2022&lt;/LI&gt;&lt;LI&gt;Month&amp;nbsp;Cumulative = Values from May 2022 of the year till May 2022&lt;/LI&gt;&lt;LI&gt;Quarter&amp;nbsp;Cumulative = Values from &lt;STRONG&gt;April&lt;/STRONG&gt; 2022 of the year till &lt;STRONG&gt;May&lt;/STRONG&gt; 2022&lt;/LI&gt;&lt;LI&gt;Yearly&amp;nbsp;Cumulative = Values from Jan 2022 of the year till May 2022&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if selected &lt;STRONG&gt;Year = 2022&lt;/STRONG&gt; and &lt;STRONG&gt;Quarter = Q2&lt;/STRONG&gt; and &lt;STRONG&gt;Month = May&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Week = Week 18&lt;/STRONG&gt;&amp;nbsp; ( which has date as [ (Monday) 2 May 2022 - 8 May 2022 (Sunday) my week start on Monday )&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Weekly Cumulative = Values from &lt;STRONG&gt;2 May 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;8 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Month&amp;nbsp;Cumulative = Values from &lt;STRONG&gt;1 May 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;8 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Quarter&amp;nbsp;Cumulative = Values from &lt;STRONG&gt;1 April 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;8 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Yearly&amp;nbsp;Cumulative = Values from &lt;STRONG&gt;1 Jan 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;8 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if selected &lt;STRONG&gt;Year = 2022&lt;/STRONG&gt; and &lt;STRONG&gt;Quarter = Q2&lt;/STRONG&gt; and &lt;STRONG&gt;Month = May&lt;/STRONG&gt; and &lt;STRONG&gt;Week = Week 18&lt;/STRONG&gt;&amp;nbsp;and &lt;STRONG&gt;Day = 4 May 2022&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Weekly Cumulative = Values from &lt;STRONG&gt;2 May 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;4 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Month&amp;nbsp;Cumulative = Values from &lt;STRONG&gt;1 May 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;4 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Quarter&amp;nbsp;Cumulative = Values from &lt;STRONG&gt;1 April 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;4 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Yearly&amp;nbsp;Cumulative = Values from &lt;STRONG&gt;1 Jan 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;4 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if selected &lt;STRONG&gt;Year = 2022&lt;/STRONG&gt; and &lt;STRONG&gt;Quarter = Q2&lt;/STRONG&gt; and &lt;STRONG&gt;Month = May&lt;/STRONG&gt; and &lt;STRONG&gt;Week = Week 18&lt;/STRONG&gt;&amp;nbsp;and &lt;STRONG&gt;Day = 3, and 4 May 2022 &lt;/STRONG&gt;then&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Weekly Cumulative = Values from &lt;STRONG&gt;3&amp;nbsp;May 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;4 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Month&amp;nbsp;Cumulative = Values from &lt;STRONG&gt;1 May 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;4 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Quarter&amp;nbsp;Cumulative = Values from &lt;STRONG&gt;1 April 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;4 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Yearly&amp;nbsp;Cumulative = Values from &lt;STRONG&gt;1 Jan 2022&lt;/STRONG&gt; of the year till &lt;STRONG&gt;4 May 2022&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am trying from last two days could coudn't able to write a measure which can me give exact result&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Planned Monthly W/o = 
Var MaxDate = EDATE(LASTDATE(Dim_Period_daywise[Date]), 0 )
Var MinDate = EOMONTH(MaxDate, -1)+1
Var Result =
CALCULATE(
    SUM( Fact_Production_VS_Quantity_T3[Planned]),
    DATESBETWEEN( Dim_Period_daywise[Date], MinDate , MaxDate )
)

Return
Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the attached PBI file.&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1LZ4tg--5hxX4AVSzCGC5IwFG3g0qBBij/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1LZ4tg--5hxX4AVSzCGC5IwFG3g0qBBij/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also would it be possible that this could work on &lt;STRONG&gt;odd day&lt;/STRONG&gt; selection let's say 2, May and 4 may selected, ?&lt;/P&gt;&lt;P&gt;Can someone please help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 17:39:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-Monthly-Quarterly-Yearly-Cumulative-Sum-till-date/m-p/2811429#M88998</guid>
      <dc:creator>vishal097</dc:creator>
      <dc:date>2022-10-02T17:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Monthly, Quarterly, Yearly Cumulative Sum till date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-Monthly-Quarterly-Yearly-Cumulative-Sum-till-date/m-p/2813328#M89106</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="382121" data-lia-user-login="vishal097" class="lia-mention lia-mention-user"&gt;vishal097&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;From your formula, I extracted the max date and min date . When I choose year=2022 , the dates are shown as below .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please correct your measure like below .&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Planned Monthly W/o = 
Var MaxDate = EDATE(LASTDATE(Dim_Period_daywise[Date]), 0 )
Var MinDate = MIN(Dim_Period_daywise[Date])
Var Result =
CALCULATE(
    SUM( Fact_Production_VS_Quantity_T3[Planned]),
    DATESBETWEEN( Dim_Period_daywise[Date], MinDate , MaxDate )
)
Return
Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Best Regards,&lt;BR /&gt;Community Support Team _ Ailsa Tao&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 08:21:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-Monthly-Quarterly-Yearly-Cumulative-Sum-till-date/m-p/2813328#M89106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T08:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Monthly, Quarterly, Yearly Cumulative Sum till date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-Monthly-Quarterly-Yearly-Cumulative-Sum-till-date/m-p/2813434#M89113</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for responding but this does not work when I select second or third or fourth week number and it showa only that perticular week data and same thing goes if i select 1 perticular day&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 08:52:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-Monthly-Quarterly-Yearly-Cumulative-Sum-till-date/m-p/2813434#M89113</guid>
      <dc:creator>vishal097</dc:creator>
      <dc:date>2022-10-03T08:52:14Z</dc:date>
    </item>
  </channel>
</rss>

