<?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: Monthly into Daily Resolution in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-into-Daily-Resolution/m-p/4331459#M171957</link>
    <description>&lt;P&gt;You use a Calendar table in your data model, and then you use VALUES(Calendar[Date]) to get the number of days for each month.&amp;nbsp; For example February 2024 was NOT 28 days...&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 19:37:13 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-12-16T19:37:13Z</dc:date>
    <item>
      <title>Monthly into Daily Resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-into-Daily-Resolution/m-p/4331402#M171950</link>
      <description>&lt;P&gt;Hey there Power Bi World,&lt;BR /&gt;&lt;BR /&gt;I need your help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Given is a tabel including three different informations.&lt;BR /&gt;The Asset, the Date and the Yield from the Asset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;monthly total for each asset is within the cell belonging to the first day of the month.&lt;BR /&gt;e.g&amp;nbsp; Asset A monthly Yield in Jan = 31,&lt;BR /&gt;&lt;BR /&gt;We do need a table converting this monthly value into daily values.&lt;BR /&gt;Take the given monthly total and divde it by the amount of days from this month.&lt;BR /&gt;&lt;BR /&gt;e.g Asset A&amp;nbsp; Daily Yield (Jan) =&amp;nbsp; mtlyYield (31) / Days in Jan (31) = 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Let's see what happens, butterflies in my stomach.&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 18:19:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-into-Daily-Resolution/m-p/4331402#M171950</guid>
      <dc:creator>Mangnuel</dc:creator>
      <dc:date>2024-12-16T18:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly into Daily Resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-into-Daily-Resolution/m-p/4331459#M171957</link>
      <description>&lt;P&gt;You use a Calendar table in your data model, and then you use VALUES(Calendar[Date]) to get the number of days for each month.&amp;nbsp; For example February 2024 was NOT 28 days...&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 19:37:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-into-Daily-Resolution/m-p/4331459#M171957</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-16T19:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly into Daily Resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-into-Daily-Resolution/m-p/4331908#M171977</link>
      <description>&lt;P&gt;Thanks for the reply from lbendlin&amp;nbsp;, please allow me to add some more information:&lt;BR /&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="727498" data-lia-user-login="Mangnuel" class="lia-mention lia-mention-user"&gt;Mangnuel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 =
var _datetable=
CALENDAR(
    DATE(2024,1,1),
    DATE(2024,3,31))
var _assettable=
DISTINCT('Table'[Asset])
var _addtable=
CROSSJOIN(
    _assettable,_datetable)
RETURN
ADDCOLUMNS(
    _addtable,
    "Yield",
    DIVIDE(
    SUMX(
        FILTER(ALL('Table'),
        'Table'[Asset]=EARLIER([Asset])&amp;amp;&amp;amp;
        YEAR('Table'[Date])=YEAR(EARLIER([Date]))&amp;amp;&amp;amp;
        MONTH('Table'[Date])=MONTH(EARLIER([Date]))),
        [Yield]),
 DAY(EOMONTH([Date],0))))&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 02:03:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-into-Daily-Resolution/m-p/4331908#M171977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-17T02:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly into Daily Resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-into-Daily-Resolution/m-p/4333002#M172025</link>
      <description>&lt;P&gt;Hello Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so far it's looling good, thanks a lot.&lt;BR /&gt;One question regarding the dates.&lt;BR /&gt;Beginning and ending is a static value.&lt;BR /&gt;Can the end by dynamic, something like today()....&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 12:03:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-into-Daily-Resolution/m-p/4333002#M172025</guid>
      <dc:creator>Mangnuel</dc:creator>
      <dc:date>2024-12-17T12:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly into Daily Resolution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-into-Daily-Resolution/m-p/4333934#M172069</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="727498" data-lia-user-login="Mangnuel" class="lia-mention lia-mention-user"&gt;Mangnuel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Are you referring to the start date and end date inside the CALENDAR() function?&lt;/P&gt;
&lt;P&gt;The parameters inside the CALENDAR() function can be customized to change, the date range is from the specified start date to the specified end date, including these two dates, if you want to use today as the last date inside the function, you can use the following dax.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALENDAR(
    DATE(2024,1,1),
    TODAY())&lt;/LI-CODE&gt;
&lt;P&gt;Refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/calendar-function-dax" target="_blank"&gt;CALENDAR function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 01:44:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-into-Daily-Resolution/m-p/4333934#M172069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-18T01:44:33Z</dc:date>
    </item>
  </channel>
</rss>

