<?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: Extend month beginning amount to the rest of the month on line chart with date hierarchy. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3267010#M120959</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I hope the below can provide some ideas on how to create a solution for your datamodel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Budget daily: = 
VAR _countdays =
    COUNTROWS (
        FILTER (
            ALL ( 'Calendar' ),
            'Calendar'[Month-Year sort] = MAX ( 'Calendar'[Month-Year sort] )
        )
    )
VAR _startingdate =
    MINX (
        FILTER (
            ALL ( 'Calendar' ),
            'Calendar'[Month-Year sort] = MAX ( 'Calendar'[Month-Year sort] )
        ),
        'Calendar'[Date]
    )
VAR _budgetmonthly =
    SUMX ( FILTER ( Budget, Budget[Month] = _startingdate ), Budget[Budget] )
RETURN
    DIVIDE ( _budgetmonthly, _countdays )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Jun 2023 04:34:26 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2023-06-04T04:34:26Z</dc:date>
    <item>
      <title>Extend month beginning amount to the rest of the month on line chart with date hierarchy.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3266992#M120958</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; I am trying to create a line chart that displays daily sales/sales projection vs daily budget for the whole year.&amp;nbsp; We do not have a daily budget, so daily budget is derived by monthly budget divided by days in month ( monthly budget / days in month).&amp;nbsp; And, our monthly budget is allocated to the first of each month.&amp;nbsp; This is fine for January thru November.&amp;nbsp; However, in December, the daily budget line stops at 12/1/2023 (see chart below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the daily budget line to stop at 12/31/2023?&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2023 03:29:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3266992#M120958</guid>
      <dc:creator>edtm</dc:creator>
      <dc:date>2023-06-04T03:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extend month beginning amount to the rest of the month on line chart with date hierarchy.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3267010#M120959</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I hope the below can provide some ideas on how to create a solution for your datamodel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Budget daily: = 
VAR _countdays =
    COUNTROWS (
        FILTER (
            ALL ( 'Calendar' ),
            'Calendar'[Month-Year sort] = MAX ( 'Calendar'[Month-Year sort] )
        )
    )
VAR _startingdate =
    MINX (
        FILTER (
            ALL ( 'Calendar' ),
            'Calendar'[Month-Year sort] = MAX ( 'Calendar'[Month-Year sort] )
        ),
        'Calendar'[Date]
    )
VAR _budgetmonthly =
    SUMX ( FILTER ( Budget, Budget[Month] = _startingdate ), Budget[Budget] )
RETURN
    DIVIDE ( _budgetmonthly, _countdays )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2023 04:34:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3267010#M120959</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-06-04T04:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extend month beginning amount to the rest of the month on line chart with date hierarchy.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3267331#M120979</link>
      <description>&lt;P&gt;Hi Jihwan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you are understanding my requirements correctly and the dax you provided are sound.&amp;nbsp; However, I was not able to replicate the results in my pbix file.&amp;nbsp; And, I found the reason why.&amp;nbsp; The Calendar and Budget table in your file is not related.&amp;nbsp; Unfortunately, my reports require that the Calendar and Budget table are connected as their are many other dimensions in the Budget table such as Product and Customer.&lt;BR /&gt;&lt;BR /&gt;Is there a way you could enhance your dax so that calendar and budget table is joined but it also removes the date filter so that only year and month relationship is kept?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ed&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2023 21:22:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3267331#M120979</guid>
      <dc:creator>edtm</dc:creator>
      <dc:date>2023-06-04T21:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extend month beginning amount to the rest of the month on line chart with date hierarchy.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3267648#M121001</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your message, and please share your sample pbix file's link, and then I can try to look into it to come up with more accurate solution.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 03:46:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3267648#M121001</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-06-05T03:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extend month beginning amount to the rest of the month on line chart with date hierarchy.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3271353#M121267</link>
      <description>&lt;P&gt;Here's a sample file.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1y29LT7X-BPp8P3f5WpIu09GfMgXxZ8z4/view?usp=drive_link" target="_self"&gt;Extend Days&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I uploaded file to google drive.&amp;nbsp; Not sure how else I can share the file since I am not a super user or ms employee.&amp;nbsp; Personally, I am not able to open the file after I dl from Google drive.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 21:38:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3271353#M121267</guid>
      <dc:creator>edtm</dc:creator>
      <dc:date>2023-06-06T21:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extend month beginning amount to the rest of the month on line chart with date hierarchy.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3271714#M121289</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I see the below message.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 03:12:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3271714#M121289</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-06-07T03:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extend month beginning amount to the rest of the month on line chart with date hierarchy.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3273520#M121406</link>
      <description>&lt;P&gt;Another link to file since the G drive wasn't working for me:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/s/la01vb1orl5lvg8/edtm2.pbix?dl=0" target="_self"&gt;Sample file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 22:34:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3273520#M121406</guid>
      <dc:creator>edtm</dc:creator>
      <dc:date>2023-06-07T22:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extend month beginning amount to the rest of the month on line chart with date hierarchy.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3273833#M121417</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your message.&lt;/P&gt;
&lt;P&gt;Could you please try the below measure for Budget daily2 whether it suits your requirement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Budget daily2: =
VAR _countdays =
    COUNTROWS (
        FILTER (
            ALL ( 'x Calendar' ),
            'x Calendar'[Month-Year sort] = MAX ( 'x Calendar'[Month-Year sort] )
        )
    )
VAR _startingdate =
    MINX (
        FILTER (
            ALL ( 'x Calendar' ),
            'x Calendar'[Month-Year sort] = MAX ( 'x Calendar'[Month-Year sort] )
        ),
        'x Calendar'[Date]
    )
VAR _budgetmonthly =
    SUMX (
        FILTER ( ALL ( 'x Budget J' ), 'x Budget J'[Month] = _startingdate ),
        'x Budget J'[Budget]
    )
RETURN
    DIVIDE ( _budgetmonthly, _countdays )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 03:10:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3273833#M121417</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-06-08T03:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extend month beginning amount to the rest of the month on line chart with date hierarchy.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3275056#M121479</link>
      <description>&lt;P&gt;I haven't adapted the dax to my own report yet but the dax's logic seems sound, thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:03:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extend-month-beginning-amount-to-the-rest-of-the-month-on-line/m-p/3275056#M121479</guid>
      <dc:creator>edtm</dc:creator>
      <dc:date>2023-06-08T16:03:59Z</dc:date>
    </item>
  </channel>
</rss>

