<?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 how to convert Spotfire Over function in Power bi Dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-Spotfire-Over-function-in-Power-bi-Dax/m-p/3871003#M151210</link>
    <description>&lt;P&gt;I have this forumla in Spotfire, Min(if([section]="red" and [category]="high",[depth])) over ([area],[block]). How can I write Dax for this in Power Bi?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2024 11:58:08 GMT</pubDate>
    <dc:creator>feiwu2024</dc:creator>
    <dc:date>2024-04-26T11:58:08Z</dc:date>
    <item>
      <title>how to convert Spotfire Over function in Power bi Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-Spotfire-Over-function-in-Power-bi-Dax/m-p/3871003#M151210</link>
      <description>&lt;P&gt;I have this forumla in Spotfire, Min(if([section]="red" and [category]="high",[depth])) over ([area],[block]). How can I write Dax for this in Power Bi?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 11:58:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-Spotfire-Over-function-in-Power-bi-Dax/m-p/3871003#M151210</guid>
      <dc:creator>feiwu2024</dc:creator>
      <dc:date>2024-04-26T11:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert Spotfire Over function in Power bi Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-Spotfire-Over-function-in-Power-bi-Dax/m-p/3871842#M151253</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 21:59:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-Spotfire-Over-function-in-Power-bi-Dax/m-p/3871842#M151253</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-26T21:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert Spotfire Over function in Power bi Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-Spotfire-Over-function-in-Power-bi-Dax/m-p/3874417#M151328</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="700913" data-lia-user-login="feiwu2024" class="lia-mention lia-mention-user"&gt;feiwu2024&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;“&lt;EM&gt;Min(if([section]=”red“ and [category]=”high“,[depth])) over ([area],[block])&lt;/EM&gt;” seems to calculate the minimum depth for records whose section is “red” and category is “high”, and group them by area and block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace it with the syntax of DAX measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MinDepth = 
CALCULATE(
    MIN(Table[depth]),
    FILTER(
        Table,
        Table[section] = "red" &amp;amp;&amp;amp; Table[category] = "high"
    ),
    ALLEXCEPT(Table, Table[area], Table[block])
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can learn more about these functions from the official documentation below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/calculate-function-dax" target="_blank"&gt;CALCULATE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/min-function-dax" target="_blank"&gt;MIN function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/filter-function-dax" target="_blank"&gt;FILTER function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/allexcept-function-dax" target="_blank"&gt;ALLEXCEPT function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 07:06:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-convert-Spotfire-Over-function-in-Power-bi-Dax/m-p/3874417#M151328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-29T07:06:34Z</dc:date>
    </item>
  </channel>
</rss>

