<?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: Getting total of a SUM based on a specific data range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-total-of-a-SUM-based-on-a-specific-data-range/m-p/3055921#M105417</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR LastSelectedDate = 
	CALCULATE ( 
		MAX ( Dates[Date] ), 
		ALLSELECTED ( Dates[Date] ) 
	)
VAR Result = 
	CALCULATE ( 
		[QTD_ATND_2],
		Dates[Date] &amp;gt; LastSelectedDate
	)
RETURN 
	Result&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 01 Feb 2023 18:27:23 GMT</pubDate>
    <dc:creator>AntrikshSharma</dc:creator>
    <dc:date>2023-02-01T18:27:23Z</dc:date>
    <item>
      <title>Getting total of a SUM based on a specific data range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-total-of-a-SUM-based-on-a-specific-data-range/m-p/3055890#M105414</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question that I couln't figure for myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to set in "DATA_CAPTURA" a specific time like "01/07/2022 to 01/07/2022". but, my "QTD_ATND_2 (it's basically a SUM) "need to be "70".&lt;/P&gt;&lt;P&gt;If I change my range in "DATA_CAPTURA" to 01/07/2022 to 31/07/2022 I will only get what is beetween this two values. But I need everthing that is before "31/07/2022".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 18:07:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-total-of-a-SUM-based-on-a-specific-data-range/m-p/3055890#M105414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-01T18:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting total of a SUM based on a specific data range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-total-of-a-SUM-based-on-a-specific-data-range/m-p/3055921#M105417</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR LastSelectedDate = 
	CALCULATE ( 
		MAX ( Dates[Date] ), 
		ALLSELECTED ( Dates[Date] ) 
	)
VAR Result = 
	CALCULATE ( 
		[QTD_ATND_2],
		Dates[Date] &amp;gt; LastSelectedDate
	)
RETURN 
	Result&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Feb 2023 18:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-total-of-a-SUM-based-on-a-specific-data-range/m-p/3055921#M105417</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2023-02-01T18:27:23Z</dc:date>
    </item>
  </channel>
</rss>

