<?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: Calculate MAX and MIN date  sale value using DAX? Hi All can you help me with below in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MAX-and-MIN-date-sale-value-using-DAX-Hi-All-can-you/m-p/2358567#M60180</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Try something like this:&lt;BR /&gt;&lt;BR /&gt;Var _maxdate = calculate(max(table[date]),all(table[date]))&lt;BR /&gt;Return&lt;BR /&gt;&lt;BR /&gt;Calculate(sum(table[sale]),all(table[date]),table[date]=_maxdate)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Var _mindate = calculate(max(table[date]),all(table[date]))&lt;BR /&gt;Return&lt;BR /&gt;&lt;BR /&gt;Calculate(sum(table[sale]),all(table[date]),table[date]=_mindate)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 11:22:24 GMT</pubDate>
    <dc:creator>ValtteriN</dc:creator>
    <dc:date>2022-02-24T11:22:24Z</dc:date>
    <item>
      <title>Calculate MAX and MIN date  sale value using DAX? Hi All can you help me with below</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MAX-and-MIN-date-sale-value-using-DAX-Hi-All-can-you/m-p/2358538#M60178</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sale&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;01-jan-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;01-jan-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;02-jan-2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;31-jan-2021&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;20-feb-2021&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;20-feb-2021&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;200&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Expected output using DAX &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mindate 01Jan 2020 sale 1500 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maxdate 20feb 2021 sale 300 &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 11:00:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MAX-and-MIN-date-sale-value-using-DAX-Hi-All-can-you/m-p/2358538#M60178</guid>
      <dc:creator>swapnareddy</dc:creator>
      <dc:date>2022-02-24T11:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate MAX and MIN date  sale value using DAX? Hi All can you help me with below</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MAX-and-MIN-date-sale-value-using-DAX-Hi-All-can-you/m-p/2358567#M60180</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Try something like this:&lt;BR /&gt;&lt;BR /&gt;Var _maxdate = calculate(max(table[date]),all(table[date]))&lt;BR /&gt;Return&lt;BR /&gt;&lt;BR /&gt;Calculate(sum(table[sale]),all(table[date]),table[date]=_maxdate)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Var _mindate = calculate(max(table[date]),all(table[date]))&lt;BR /&gt;Return&lt;BR /&gt;&lt;BR /&gt;Calculate(sum(table[sale]),all(table[date]),table[date]=_mindate)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 11:22:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-MAX-and-MIN-date-sale-value-using-DAX-Hi-All-can-you/m-p/2358567#M60180</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-24T11:22:24Z</dc:date>
    </item>
  </channel>
</rss>

