<?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: How to find the column according to the minimum value and the position in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064673#M106064</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Sir&lt;/P&gt;&lt;P&gt;Same solution I'm using but getting different result from my end. What could be the reason?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using 2 different databases which are databricks and IBM DB2 and merging queries by the inner join. Then making this calculation. because of that it causing any&amp;nbsp;discrepancy ?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 20:25:16 GMT</pubDate>
    <dc:creator>Money</dc:creator>
    <dc:date>2023-02-06T20:25:16Z</dc:date>
    <item>
      <title>How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3061166#M105767</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope everyone doing good !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A new column should be added as a function of the condition.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Match Condition&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg : ID 1877&lt;/P&gt;&lt;P&gt;1.) In the id group, the minimum value of tho_cw_diff should be checked&amp;nbsp;and Rail position of thor_pos/CW_pos should be same.&lt;/P&gt;&lt;P&gt;eg : ID 7931&lt;/P&gt;&lt;P&gt;2.) If the rail position is not the same for the minimum tho_cw_diff value, check for the other minimum value in group ID that the rail position thor_pos/CW_po is the same.&lt;/P&gt;&lt;P&gt;eg: ID 8880&lt;/P&gt;&lt;P&gt;3.)&amp;nbsp;If all the rail position is different for the group ID, select the minimum tho_cw_diff value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to these three conditions, the new column must be updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sharing screenshot data of the expected outputs below&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="262645" data-lia-user-login="Mikelytics" class="lia-mention lia-mention-user"&gt;Mikelytics&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443516" data-lia-user-login="ppm1" class="lia-mention lia-mention-user"&gt;ppm1&lt;/a&gt;&amp;nbsp;&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;</description>
      <pubDate>Fri, 03 Feb 2023 22:17:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3061166#M105767</guid>
      <dc:creator>Money</dc:creator>
      <dc:date>2023-02-03T22:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3061281#M105778</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509482" data-lia-user-login="Money" class="lia-mention lia-mention-user"&gt;Money&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;New column =&lt;/P&gt;
&lt;P&gt;var _min = minx(filter(Table, [ID] = earlier([ID]) ), [tho_cw_diff])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;if([tho_cw_diff] = _min, "Yes", "No")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI DAX- Earlier, I should have known Earlier: &lt;A href="https://youtu.be/CVW6YwvHHi8" target="_blank"&gt;https://youtu.be/CVW6YwvHHi8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 02:10:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3061281#M105778</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-02-04T02:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3061388#M105799</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; sir&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have to consider the Thor position and CW pos column for the match based on the 3 conditon.&lt;/P&gt;&lt;P&gt;Above shared example unable to get the expected new column result.&lt;/P&gt;&lt;P&gt;please guide me to get the desired output sir.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in adavnce&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;highlighted the position&amp;nbsp;&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;</description>
      <pubDate>Sat, 04 Feb 2023 06:01:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3061388#M105799</guid>
      <dc:creator>Money</dc:creator>
      <dc:date>2023-02-04T06:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3061457#M105804</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509482" data-lia-user-login="Money" class="lia-mention lia-mention-user"&gt;Money&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;=&lt;BR /&gt;VAR CurrentValue = 'Table'[tho_cw_diff]&lt;BR /&gt;VAR CurrentIDTable =&lt;BR /&gt;CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[ID] ) )&lt;BR /&gt;VAR FiteredTable =&lt;BR /&gt;FILTER ( CurrentIDTable, 'Table'[THO_position] = 'Table'[CW_POS] )&lt;BR /&gt;VAR ReturnValue =&lt;BR /&gt;IF (&lt;BR /&gt;ISEMPTY ( FiteredTable ),&lt;BR /&gt;MINX ( CurrentIDTable, 'Table'[tho_cw_diff] ),&lt;BR /&gt;MINX ( FiteredTable, 'Table'[tho_cw_diff] )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF ( CurrentValue = ReturnValue, "Yes", "No" )&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 12:40:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3061457#M105804</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-04T12:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3063004#M105943</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509482" data-lia-user-login="Money" class="lia-mention lia-mention-user"&gt;Money&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;Column:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MIN Diff = 
Var _Min1=
CALCULATE(MIN('Table'[THO_CW_DIFF]),FILTER('Table',[ID]=EARLIER('Table'[ID])&amp;amp;&amp;amp;[THO_position]=[CW_POS]))
Return
IF(_Min1=BLANK(),CALCULATE(MIN('Table'[THO_CW_DIFF]),FILTER('Table',[ID]=EARLIER('Table'[ID]))),_Min1)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Result = IF([THO_CW_DIFF]=[MIN Diff],"Yes","No")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&amp;nbsp;At ID 8880, -0.034 is smaller, isn't it?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 05:52:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3063004#M105943</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-02-06T05:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3063052#M105948</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Sir&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the above calculated column, but unable to get the expected output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The given answer is working for the first set of group ID : 1877. For other group of id its getting randomly updating as "yes"or "no". Could you please guide me sir&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 06:27:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3063052#M105948</guid>
      <dc:creator>Money</dc:creator>
      <dc:date>2023-02-06T06:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3063140#M105954</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509482" data-lia-user-login="Money" class="lia-mention lia-mention-user"&gt;Money&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you dealing with the negative values?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 07:23:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3063140#M105954</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T07:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064081#M106025</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&amp;nbsp; Hi Sir ,&lt;/P&gt;&lt;P&gt;We have to consider the minimum diffrence for both the positive as well negative value.&lt;/P&gt;&lt;P&gt;302.60 - 302.627 = -0.27 is the smaller when compare to the last group ID&amp;nbsp; : 8880&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached the result from the actual orginal data.&amp;nbsp;&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;Please&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 14:45:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064081#M106025</guid>
      <dc:creator>Money</dc:creator>
      <dc:date>2023-02-06T14:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064099#M106026</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332147" data-lia-user-login="v-zhangti" class="lia-mention lia-mention-user"&gt;v-zhangti&lt;/a&gt;&amp;nbsp;Hi Team,&lt;/P&gt;&lt;P&gt;Thanks for guiding and helping&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;302.60 - 302.627 = -0.27 is the smaller when compare to the last group ID&amp;nbsp; : 8880&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and for the sample data we are getting the desired output but for the actual data the result is diffrent for the other group ids&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached the result from the actual orginal data.&amp;nbsp;&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;Please do the needful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 14:51:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064099#M106026</guid>
      <dc:creator>Money</dc:creator>
      <dc:date>2023-02-06T14:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064109#M106027</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509482" data-lia-user-login="Money" class="lia-mention lia-mention-user"&gt;Money&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
VAR CurrentValue = 'Table'[tho_cw_diff]
VAR CurrentIDTable =
    CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[THO_MP] ) )
VAR FiteredTable =
    FILTER ( CurrentIDTable, 'Table'[THO_position] = 'Table'[CW_POS] )
VAR ReturnValue =
    IF (
        ISEMPTY ( FiteredTable ),
        MINX ( CurrentIDTable, 'Table'[tho_cw_diff] ),
        MINX ( FiteredTable, 'Table'[tho_cw_diff] )
    )
RETURN
    IF ( CurrentValue = ReturnValue, "Yes", "No" )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Feb 2023 14:55:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064109#M106027</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T14:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064125#M106028</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Sir&lt;/P&gt;&lt;P&gt;Getting "No" for all the ID's&amp;nbsp; after updated the answer.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:06:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064125#M106028</guid>
      <dc:creator>Money</dc:creator>
      <dc:date>2023-02-06T15:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064180#M106033</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509482" data-lia-user-login="Money" class="lia-mention lia-mention-user"&gt;Money&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you define a group?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:34:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064180#M106033</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T15:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064204#M106036</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Sir&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The group is ID having same number more than one count or single count.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group 1&lt;/STRONG&gt; (having have 4 ID )&lt;/P&gt;&lt;P&gt;1551877&lt;/P&gt;&lt;P&gt;1551877&lt;/P&gt;&lt;P&gt;1551877&lt;/P&gt;&lt;P&gt;1551877&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group 2&lt;/STRONG&gt; (having have 2 ID )&lt;/P&gt;&lt;P&gt;1551875&lt;/P&gt;&lt;P&gt;1551875&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group 3&lt;/STRONG&gt;&amp;nbsp;(having have 2 ID )&lt;/P&gt;&lt;P&gt;1551841&lt;/P&gt;&lt;P&gt;1551841&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group 4&lt;/STRONG&gt;&amp;nbsp;(having have 1 ID )&lt;/P&gt;&lt;P&gt;1551614&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group 5&lt;/STRONG&gt;&amp;nbsp;(having have 1 ID )&lt;/P&gt;&lt;P&gt;1551613&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group 6&lt;/STRONG&gt;&amp;nbsp;(having have 1 ID )&lt;/P&gt;&lt;P&gt;1551612&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If ID having more than one count then we are doing matching based on the condtion to select only one ID from that Group . If the ID count is single then we can directly mark it as "YES" (For the above shared eg : Group 4, Group5, Group 6)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:47:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064204#M106036</guid>
      <dc:creator>Money</dc:creator>
      <dc:date>2023-02-06T15:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064397#M106041</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509482" data-lia-user-login="Money" class="lia-mention lia-mention-user"&gt;Money&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Is this the correct result? If not would you please highight wrong results and explain why. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 17:02:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064397#M106041</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T17:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064521#M106048</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Sir&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the expected and correct result Sir. All Good&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 18:36:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064521#M106048</guid>
      <dc:creator>Money</dc:creator>
      <dc:date>2023-02-06T18:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064524#M106050</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332147" data-lia-user-login="v-zhangti" class="lia-mention lia-mention-user"&gt;v-zhangti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;302.60 - 302.627 = -0.27&lt;/STRONG&gt;&amp;nbsp;is the smaller when compare to the last group ID&amp;nbsp; : 8880&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are finding the close CW_MP&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to update the above shared calculated column to get this result.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 15:29:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064524#M106050</guid>
      <dc:creator>Money</dc:creator>
      <dc:date>2023-02-23T15:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064545#M106053</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509482" data-lia-user-login="Money" class="lia-mention lia-mention-user"&gt;Money&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my very first solution &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 18:48:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064545#M106053</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T18:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064673#M106064</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Sir&lt;/P&gt;&lt;P&gt;Same solution I'm using but getting different result from my end. What could be the reason?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using 2 different databases which are databricks and IBM DB2 and merging queries by the inner join. Then making this calculation. because of that it causing any&amp;nbsp;discrepancy ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 20:25:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3064673#M106064</guid>
      <dc:creator>Money</dc:creator>
      <dc:date>2023-02-06T20:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3095764#M108628</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Sir how to modify the calculated column to get the shared image result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR CurrentValue = 'Table'[tho_cw_diff]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR CurrentIDTable =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[ID] ) )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR FiteredTable =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FILTER ( CurrentIDTable, 'Table'[THO_position] = 'Table'[CW_POS] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR ReturnValue =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISEMPTY ( FiteredTable ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MINX ( CurrentIDTable, 'Table'[tho_cw_diff] ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MINX ( FiteredTable, 'Table'[tho_cw_diff] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF ( CurrentValue = ReturnValue, "Yes", "No" )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are tryping to get the closet CW_Mp&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg : THO_MP = 173 is very close to CW_MP = 173.072&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the update &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&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;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 15:25:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3095764#M108628</guid>
      <dc:creator>Money</dc:creator>
      <dc:date>2023-02-23T15:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the column according to the minimum value and the position</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3095860#M108635</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509482" data-lia-user-login="Money" class="lia-mention lia-mention-user"&gt;Money&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;=&lt;BR /&gt;VAR CurrentValue =&lt;BR /&gt;ABS ( 'Table'[tho_cw_diff] )&lt;BR /&gt;VAR CurrentIDTable =&lt;BR /&gt;CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[THO_MP] ) )&lt;BR /&gt;VAR FiteredTable =&lt;BR /&gt;FILTER ( CurrentIDTable, 'Table'[THO_position] = 'Table'[CW_POS] )&lt;BR /&gt;VAR ReturnValue =&lt;BR /&gt;IF (&lt;BR /&gt;ISEMPTY ( FiteredTable ),&lt;BR /&gt;MINX ( CurrentIDTable, ABS ( 'Table'[tho_cw_diff] ) ),&lt;BR /&gt;MINX ( FiteredTable, ABS ( 'Table'[tho_cw_diff] ) )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF ( CurrentValue = ReturnValue, "Yes", "No" )&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 15:53:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-the-column-according-to-the-minimum-value-and-the/m-p/3095860#M108635</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-23T15:53:47Z</dc:date>
    </item>
  </channel>
</rss>

