<?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: Help with MIN &amp;amp; MAX Commands in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-MIN-amp-MAX-Commands/m-p/3686478#M143199</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&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;LI-CODE lang="markup"&gt;Expected result measure: =
VAR _mindatevalue =
    CALCULATE (
        SUM ( Data[Incurred] ),
        WINDOW (
            1,
            ABS,
            1,
            ABS,
            SUMMARIZE ( Data, Data[Claim Reference], Data[Insured], Data[Reporting Period] ),
            ORDERBY ( Data[Reporting Period] ),
            ,
            PARTITIONBY ( Data[Claim Reference], Data[Insured] )
        )
    )
VAR _maxdatevalue =
    CALCULATE (
        SUM ( Data[Incurred] ),
        WINDOW (
            -1,
            ABS,
            -1,
            ABS,
            SUMMARIZE ( Data, Data[Claim Reference], Data[Insured], Data[Reporting Period] ),
            ORDERBY ( Data[Reporting Period] ),
            ,
            PARTITIONBY ( Data[Claim Reference], Data[Insured] )
        )
    )
RETURN
    _maxdatevalue - _mindatevalue
&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 07 Feb 2024 17:58:04 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2024-02-07T17:58:04Z</dc:date>
    <item>
      <title>Help with MIN &amp; MAX Commands</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-MIN-amp-MAX-Commands/m-p/3686264#M143188</link>
      <description>&lt;P&gt;I'm hoping for a bit of guidance as I'm struggling to get a meaninful result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my data set out below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Claim Reference&lt;/TD&gt;&lt;TD&gt;Insured&lt;/TD&gt;&lt;TD&gt;Incurred&lt;/TD&gt;&lt;TD&gt;Reporting Period&lt;/TD&gt;&lt;TD&gt;Max Date&lt;/TD&gt;&lt;TD&gt;Min Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CL94887&lt;/TD&gt;&lt;TD&gt;John Smith&lt;/TD&gt;&lt;TD&gt;£17,000&lt;/TD&gt;&lt;TD&gt;31/10/23&lt;/TD&gt;&lt;TD&gt;31/12/23&lt;/TD&gt;&lt;TD&gt;31/10/23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CL94887&lt;/TD&gt;&lt;TD&gt;John Smith&lt;/TD&gt;&lt;TD&gt;£65,000&lt;/TD&gt;&lt;TD&gt;30/11/23&lt;/TD&gt;&lt;TD&gt;31/12/23&lt;/TD&gt;&lt;TD&gt;31/10/23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CL94887&lt;/TD&gt;&lt;TD&gt;John Smith&lt;/TD&gt;&lt;TD&gt;£70,000&lt;/TD&gt;&lt;TD&gt;31/12/23&lt;/TD&gt;&lt;TD&gt;31/12/23&lt;/TD&gt;&lt;TD&gt;31/10/23&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just for context, I receive monthly insurance claim declerations which get imported into Power BI automatically. The data doesn't get overwritten if it's the same, it just get's added to the bottom. If no figures (such as the incurred changes) it adds a new row with just the reporting period changed with the same figures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm looking to acheive is looking at the life cycle of claims from the first month it's reported, to the latest month. Taking the example above, It first appeared in October 2023 at £17,000 and in December, it moved to £70,000. Therefore, we have an increase of £53,000. What I want to do is create a measure that looks at this difference as an amount based on the min and max dates and possibly the accuracy of the intial incurred to what is is not as a %.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this something that's possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 16:19:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-MIN-amp-MAX-Commands/m-p/3686264#M143188</guid>
      <dc:creator>PowerQ12</dc:creator>
      <dc:date>2024-02-07T16:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with MIN &amp; MAX Commands</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-MIN-amp-MAX-Commands/m-p/3686478#M143199</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&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;LI-CODE lang="markup"&gt;Expected result measure: =
VAR _mindatevalue =
    CALCULATE (
        SUM ( Data[Incurred] ),
        WINDOW (
            1,
            ABS,
            1,
            ABS,
            SUMMARIZE ( Data, Data[Claim Reference], Data[Insured], Data[Reporting Period] ),
            ORDERBY ( Data[Reporting Period] ),
            ,
            PARTITIONBY ( Data[Claim Reference], Data[Insured] )
        )
    )
VAR _maxdatevalue =
    CALCULATE (
        SUM ( Data[Incurred] ),
        WINDOW (
            -1,
            ABS,
            -1,
            ABS,
            SUMMARIZE ( Data, Data[Claim Reference], Data[Insured], Data[Reporting Period] ),
            ORDERBY ( Data[Reporting Period] ),
            ,
            PARTITIONBY ( Data[Claim Reference], Data[Insured] )
        )
    )
RETURN
    _maxdatevalue - _mindatevalue
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Feb 2024 17:58:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-MIN-amp-MAX-Commands/m-p/3686478#M143199</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-02-07T17:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with MIN &amp; MAX Commands</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-MIN-amp-MAX-Commands/m-p/3688637#M143311</link>
      <description>&lt;P&gt;This is great, thank you so much for this. This is exactly what I was looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to use this Measure to work out a % accuracy value and aggregate this as an overall figure per reporting period?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 14:47:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-MIN-amp-MAX-Commands/m-p/3688637#M143311</guid>
      <dc:creator>PowerQ12</dc:creator>
      <dc:date>2024-02-08T14:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with MIN &amp; MAX Commands</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-MIN-amp-MAX-Commands/m-p/3688844#M143320</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please provide your sample pbix file with describing how the expected outcome looks like.&lt;/P&gt;
&lt;P&gt;And then I can try to look into it.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 16:03:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-MIN-amp-MAX-Commands/m-p/3688844#M143320</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-02-08T16:03:30Z</dc:date>
    </item>
  </channel>
</rss>

