<?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: Calculating a value by month in every month of a period in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3044959#M104628</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I created the column I got an error saying I inputed a table with many values and it was expected to be a single value.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 12:14:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-26T12:14:31Z</dc:date>
    <item>
      <title>Calculating a value by month in every month of a period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3041576#M104350</link>
      <description>&lt;P&gt;I have a table with a cost column, a start date column and an end date column. I need to create either a measure or a calculated column that gives me the cost for every month/year between the start and end dates to relate with my calendar table and generate graphs with the sum for each month/year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I have this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I need it to be like this, taking the first cost as an example&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;</description>
      <pubDate>Wed, 25 Jan 2023 01:34:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3041576#M104350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-25T01:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a value by month in every month of a period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3041606#M104354</link>
      <description>&lt;P&gt;hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what do you expect to return on overlapping days like 02/08/2022?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 01:59:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3041606#M104354</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-25T01:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a value by month in every month of a period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3042985#M104463</link>
      <description>&lt;P&gt;nothing, I need it to be just one day for each month/year that has a value&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 14:49:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3042985#M104463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-25T14:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a value by month in every month of a period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3043008#M104466</link>
      <description>&lt;P&gt;hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For 01/09/2022, why 678 is return, not 235.5?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 14:58:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3043008#M104466</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-25T14:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a value by month in every month of a period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3043302#M104510</link>
      <description>&lt;P&gt;Yes, I need each line to be divided in multiple lines, one for each month with the separate costs. So for 01/09/2022 for example I'd have a line with 678, a line with 235.5, a line with 765.4, a line with 235.6 and a line with 6893&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 16:31:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3043302#M104510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-25T16:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a value by month in every month of a period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3044129#M104583</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to the following example.&lt;/P&gt;
&lt;P&gt;Create a new table first:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = var a=CALENDAR(DATE(2020,1,1),date(2023,12,31))
return GENERATE(SUMMARIZE('Table',[Cost]),a)
&lt;/LI-CODE&gt;
&lt;P&gt;Then create a column in new table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = var _startdate=LOOKUPVALUE('Table'[Start Date],'Table'[Cost],'Table 2'[Cost])
var _enddate=LOOKUPVALUE('Table'[End Date],'Table'[Cost],'Table 2'[Cost])
return IF([Date]&amp;gt;=_startdate&amp;amp;&amp;amp;[Date]&amp;lt;=_enddate&amp;amp;&amp;amp;DAY([Date])=1,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;Then filter the column:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 02:13:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3044129#M104583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-26T02:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a value by month in every month of a period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3044959#M104628</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I created the column I got an error saying I inputed a table with many values and it was expected to be a single value.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 12:14:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3044959#M104628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-26T12:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a value by month in every month of a period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3046383#M104720</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide the picture of error message, and do you create the table, then create the column?&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 01:18:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3046383#M104720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-27T01:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a value by month in every month of a period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3047097#M104783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Find the message below (it's in Portuguese). And yes, first I created the table, then the column. I'm not sure why I got an error, but maybe it's because in my table (with the costs) I have similar costs for different periods of time. So I think it didn't find a single correspondent value and didn't know witch one to consider.&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;</description>
      <pubDate>Fri, 27 Jan 2023 11:35:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3047097#M104783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-27T11:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a value by month in every month of a period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3049839#M105010</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to the following example.&lt;/P&gt;
&lt;P&gt;The sample data table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Modified the column in table 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = IF(COUNTROWS(FILTER('Table',[Cost]=EARLIER('Table 2'[Cost])&amp;amp;&amp;amp;EARLIER('Table 2'[Date])&amp;gt;='Table'[Start Date]&amp;amp;&amp;amp;EARLIER('Table 2'[Date])&amp;lt;='Table'[End Date]))&amp;gt;0&amp;amp;&amp;amp;DAY([Date])=1,1,0)&lt;/LI-CODE&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;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/I&gt;, then please consider&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/I&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 08:39:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-value-by-month-in-every-month-of-a-period/m-p/3049839#M105010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-30T08:39:20Z</dc:date>
    </item>
  </channel>
</rss>

