<?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 of Distinct columns by Created Previous Month Date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Distinct-columns-by-Created-Previous-Month-Date/m-p/3125453#M111001</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;NewColumn =&lt;BR /&gt;VAR T1 =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;'Table',&lt;BR /&gt;ALLEXCEPT (&lt;BR /&gt;'Table',&lt;BR /&gt;'Table'[File Date],&lt;BR /&gt;'Table'[Name],&lt;BR /&gt;'Table'[ID],&lt;BR /&gt;'Table'[Created Date]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;VAR T2 =&lt;BR /&gt;FILTER (&lt;BR /&gt;T1,&lt;BR /&gt;FORMAT ( 'Table'[File Date], "YYMM" ) = FORMAT ( 'Table'[Created Date], "YYMM" )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;MAXX ( T, 'Table'[Amount] ) + 0&lt;/P&gt;</description>
    <pubDate>Sat, 11 Mar 2023 13:01:32 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-03-11T13:01:32Z</dc:date>
    <item>
      <title>Sum of Distinct columns by Created Previous Month Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Distinct-columns-by-Created-Previous-Month-Date/m-p/3125108#M110974</link>
      <description>&lt;P&gt;Hello all!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the data I'm trying to calc the previous months (February) data based on these distinct columns:&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;Thank you!!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 22:04:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Distinct-columns-by-Created-Previous-Month-Date/m-p/3125108#M110974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-10T22:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Distinct columns by Created Previous Month Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Distinct-columns-by-Created-Previous-Month-Date/m-p/3125166#M110978</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the logic is not very clear. could you elaborate it?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 00:14:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Distinct-columns-by-Created-Previous-Month-Date/m-p/3125166#M110978</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-11T00:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Distinct columns by Created Previous Month Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Distinct-columns-by-Created-Previous-Month-Date/m-p/3125453#M111001</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;NewColumn =&lt;BR /&gt;VAR T1 =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;'Table',&lt;BR /&gt;ALLEXCEPT (&lt;BR /&gt;'Table',&lt;BR /&gt;'Table'[File Date],&lt;BR /&gt;'Table'[Name],&lt;BR /&gt;'Table'[ID],&lt;BR /&gt;'Table'[Created Date]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;VAR T2 =&lt;BR /&gt;FILTER (&lt;BR /&gt;T1,&lt;BR /&gt;FORMAT ( 'Table'[File Date], "YYMM" ) = FORMAT ( 'Table'[Created Date], "YYMM" )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;MAXX ( T, 'Table'[Amount] ) + 0&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 13:01:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Distinct-columns-by-Created-Previous-Month-Date/m-p/3125453#M111001</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-11T13:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Distinct columns by Created Previous Month Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Distinct-columns-by-Created-Previous-Month-Date/m-p/3128186#M111200</link>
      <description>&lt;P&gt;Thank you, gave that one a shot but wasn't quite what I was looking for. I'd been working on this seperately with this formula and got to what I needed, not sure if this is efficient?...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Column =&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;SUMX(&lt;/P&gt;&lt;P&gt;DISTINCT (&lt;SPAN&gt;Table'[ID]), CALCULATE(MAX('Table'[Amount]))),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DATESINPERIOD('Table'[Created Date],MAX('Table'[Created Date]),-30,DAY))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:58:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Distinct-columns-by-Created-Previous-Month-Date/m-p/3128186#M111200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-13T13:58:21Z</dc:date>
    </item>
  </channel>
</rss>

