<?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: Filtering data before calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-before-calculation/m-p/2699610#M81633</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I assume you want to create a calculated column.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Diff calculated column =
MAXX (
    FILTER ( Data, Data[Serial No] = EARLIER ( Data[Serial No] ) ),
    Data[Voltage]
)
    - MINX (
        FILTER ( Data, Data[Serial No] = EARLIER ( Data[Serial No] ) ),
        Data[Voltage]
    )
&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 15 Aug 2022 03:08:56 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-08-15T03:08:56Z</dc:date>
    <item>
      <title>Filtering data before calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-before-calculation/m-p/2699592#M81630</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;From the screenshot shown above, I would like to filter the serial number first before proceeding to calculate the difference in the higest and lowest voltage within each serial number. Is there a possible way in achieving the above mentioned outcome? Relatively new to power BI so I am quite unsure with how to approach this problem. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 02:41:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-before-calculation/m-p/2699592#M81630</guid>
      <dc:creator>asimpleman9to5</dc:creator>
      <dc:date>2022-08-15T02:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data before calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-before-calculation/m-p/2699610#M81633</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I assume you want to create a calculated column.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Diff calculated column =
MAXX (
    FILTER ( Data, Data[Serial No] = EARLIER ( Data[Serial No] ) ),
    Data[Voltage]
)
    - MINX (
        FILTER ( Data, Data[Serial No] = EARLIER ( Data[Serial No] ) ),
        Data[Voltage]
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Aug 2022 03:08:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-before-calculation/m-p/2699610#M81633</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-15T03:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data before calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-before-calculation/m-p/2699645#M81638</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 03:42:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-data-before-calculation/m-p/2699645#M81638</guid>
      <dc:creator>asimpleman9to5</dc:creator>
      <dc:date>2022-08-15T03:42:03Z</dc:date>
    </item>
  </channel>
</rss>

