<?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 Finding the minimum value for each row IF the two conditions are TRUE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-minimum-value-for-each-row-IF-the-two-conditions-are/m-p/719244#M1316</link>
    <description>&lt;P&gt;Hey everyone, I'm trying to find a way to create a custom column that allows me to find the minimum value of each row if the conditions in two other columns are true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To put some clarity, I have a field named &lt;STRONG&gt;QuantityNeeded&amp;nbsp;&lt;/STRONG&gt;that I am trying to find the minimum of.&amp;nbsp; I want to find the minimum for every row in &lt;STRONG&gt;QuantityNeeded&lt;/STRONG&gt; whenever the field &lt;STRONG&gt;Required?&lt;/STRONG&gt; is &lt;EM&gt;"Optional"&amp;nbsp;&lt;/EM&gt;AND whenever the field &lt;STRONG&gt;CompetencyType&lt;/STRONG&gt; is &lt;EM&gt;"Exams."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried writing a DAX formula to solve this problem, but I'm unfamiliar with complex DAX solutions.&amp;nbsp; Below is the DAX that I wrote:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Minimum Needed = IF('CompetencyRequirements'[CompetencyType]="Exams" &amp;amp;&amp;amp; 'CompetencyRequirements'[Required?]="Optional", MINX(FILTER(CompetencyRequirements, [CompetencyType]="Exams"), FILTER(CompetencyRequirements, [Required?]="Optional")) ,BLANK())&lt;/PRE&gt;&lt;P&gt;All fields are within the same table, &lt;STRONG&gt;CompetencyRequirements&lt;/STRONG&gt;, and the error I'm getting is: "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."&amp;nbsp; All I want to do is find the minimum of one column, &lt;STRONG&gt;QuantityNeeded&lt;/STRONG&gt;, when the conditions of the other two columns are true.&amp;nbsp; I appreciate any and all help!!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 16:26:05 GMT</pubDate>
    <dc:creator>calexander1337</dc:creator>
    <dc:date>2019-06-19T16:26:05Z</dc:date>
    <item>
      <title>Finding the minimum value for each row IF the two conditions are TRUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-minimum-value-for-each-row-IF-the-two-conditions-are/m-p/719244#M1316</link>
      <description>&lt;P&gt;Hey everyone, I'm trying to find a way to create a custom column that allows me to find the minimum value of each row if the conditions in two other columns are true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To put some clarity, I have a field named &lt;STRONG&gt;QuantityNeeded&amp;nbsp;&lt;/STRONG&gt;that I am trying to find the minimum of.&amp;nbsp; I want to find the minimum for every row in &lt;STRONG&gt;QuantityNeeded&lt;/STRONG&gt; whenever the field &lt;STRONG&gt;Required?&lt;/STRONG&gt; is &lt;EM&gt;"Optional"&amp;nbsp;&lt;/EM&gt;AND whenever the field &lt;STRONG&gt;CompetencyType&lt;/STRONG&gt; is &lt;EM&gt;"Exams."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried writing a DAX formula to solve this problem, but I'm unfamiliar with complex DAX solutions.&amp;nbsp; Below is the DAX that I wrote:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Minimum Needed = IF('CompetencyRequirements'[CompetencyType]="Exams" &amp;amp;&amp;amp; 'CompetencyRequirements'[Required?]="Optional", MINX(FILTER(CompetencyRequirements, [CompetencyType]="Exams"), FILTER(CompetencyRequirements, [Required?]="Optional")) ,BLANK())&lt;/PRE&gt;&lt;P&gt;All fields are within the same table, &lt;STRONG&gt;CompetencyRequirements&lt;/STRONG&gt;, and the error I'm getting is: "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."&amp;nbsp; All I want to do is find the minimum of one column, &lt;STRONG&gt;QuantityNeeded&lt;/STRONG&gt;, when the conditions of the other two columns are true.&amp;nbsp; I appreciate any and all help!!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 16:26:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-minimum-value-for-each-row-IF-the-two-conditions-are/m-p/719244#M1316</guid>
      <dc:creator>calexander1337</dc:creator>
      <dc:date>2019-06-19T16:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the minimum value for each row IF the two conditions are TRUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-minimum-value-for-each-row-IF-the-two-conditions-are/m-p/719303#M1318</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="136687" data-lia-user-login="calexander1337" class="lia-mention lia-mention-user"&gt;calexander1337&lt;/a&gt;&amp;nbsp;Read this post to get your answer quickly. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 17:41:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-minimum-value-for-each-row-IF-the-two-conditions-are/m-p/719303#M1318</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-06-19T17:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the minimum value for each row IF the two conditions are TRUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-minimum-value-for-each-row-IF-the-two-conditions-are/m-p/719329#M1324</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 18:10:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-minimum-value-for-each-row-IF-the-two-conditions-are/m-p/719329#M1324</guid>
      <dc:creator>avanderschilden</dc:creator>
      <dc:date>2019-06-19T18:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the minimum value for each row IF the two conditions are TRUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-minimum-value-for-each-row-IF-the-two-conditions-are/m-p/719346#M1327</link>
      <description>&lt;P&gt;Hi! Thanks for your response.&amp;nbsp; This is a solution to the problem I presented, so I'll mark it as the solution.&amp;nbsp; Although, I realized I left out minor details in this post that make the problem more complex.&amp;nbsp; Regardless, this problem ended up getting solved internally, but I appreciate the effort you put into answering!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="144365" data-lia-user-login="avanderschilden" class="lia-mention lia-mention-user"&gt;avanderschilden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 18:40:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-minimum-value-for-each-row-IF-the-two-conditions-are/m-p/719346#M1327</guid>
      <dc:creator>calexander1337</dc:creator>
      <dc:date>2019-06-19T18:40:04Z</dc:date>
    </item>
  </channel>
</rss>

