<?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: SUM and filter by month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-and-filter-by-month/m-p/3218451#M117560</link>
    <description>&lt;P&gt;Hello are you sure you made relationship between the tables?&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 17:49:36 GMT</pubDate>
    <dc:creator>eliasayyy</dc:creator>
    <dc:date>2023-05-03T17:49:36Z</dc:date>
    <item>
      <title>SUM and filter by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-and-filter-by-month/m-p/3218245#M117543</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to DAX and am having some trouble with this measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to SUM 3 columns from different tables, however when I apply a month filter to the page it does not filter the SUM value so I am looking for a solution to filter the measure by month. I have a date table and would like to filter by Month_Year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Budget = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Catering Budget'&lt;/SPAN&gt;&lt;SPAN&gt;[Catering Budget]&lt;/SPAN&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Dining Subsidy'&lt;/SPAN&gt;&lt;SPAN&gt;[Dining Budget]&lt;/SPAN&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Office Coffee Budget'&lt;/SPAN&gt;&lt;SPAN&gt;[Office Coffee Budget]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 May 2023 15:25:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-and-filter-by-month/m-p/3218245#M117543</guid>
      <dc:creator>am_i_really</dc:creator>
      <dc:date>2023-05-03T15:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: SUM and filter by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-and-filter-by-month/m-p/3218451#M117560</link>
      <description>&lt;P&gt;Hello are you sure you made relationship between the tables?&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:49:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-and-filter-by-month/m-p/3218451#M117560</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-03T17:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: SUM and filter by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-and-filter-by-month/m-p/3228292#M118332</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490352" data-lia-user-login="am_i_really" class="lia-mention lia-mention-user"&gt;am_i_really&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to create a calendar table and then create relationships between "Calendar" and these three tables.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calendar = 
ADDCOLUMNS (
    CALENDARAUTO (),
    "Year", YEAR ( [Date] ),
    "Month", MONTH ( [Date] ),
    "Month_Year", FORMAT ( [Date], "MMMM_YYYY" ),
    "YearMonth",
        YEAR ( [Date] ) * 100
            + MONTH ( [Date] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 07:26:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUM-and-filter-by-month/m-p/3228292#M118332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-10T07:26:14Z</dc:date>
    </item>
  </channel>
</rss>

