<?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 Creating custom column with Multiple condition on Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-custom-column-with-Multiple-condition-on-Column/m-p/3235398#M118892</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have a table containing the list of multiple items and values like below&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Item Name&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;BR /&gt;Kp123_K1&amp;nbsp; &amp;nbsp; &amp;nbsp; 29.35&lt;BR /&gt;&lt;STRONG&gt;FK569_K1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11.5&lt;/STRONG&gt;&lt;BR /&gt;Kp123_K2&amp;nbsp; &amp;nbsp; &amp;nbsp; 30.25&lt;BR /&gt;&lt;STRONG&gt;FK569_K2&amp;nbsp; &amp;nbsp; &amp;nbsp; 13.11&lt;/STRONG&gt;&lt;BR /&gt;Kp123_K3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;26.56&lt;BR /&gt;&lt;STRONG&gt;FK569_K3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12.00&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;In the new column, I should get if (item name(&lt;STRONG&gt;FK569_K1)&amp;lt;11.9) then item name(Kp123_K1 )* 24&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;&amp;nbsp;if the condition is satisfied value will return( Ex.&amp;nbsp; 29.35* 24) else &lt;STRONG&gt;false &lt;/STRONG&gt;should be return.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Can any one help me the dax formula for this to get new custom column&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for the help&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 May 2023 09:50:11 GMT</pubDate>
    <dc:creator>Lakshmi1294</dc:creator>
    <dc:date>2023-05-15T09:50:11Z</dc:date>
    <item>
      <title>Creating custom column with Multiple condition on Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-custom-column-with-Multiple-condition-on-Column/m-p/3235398#M118892</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have a table containing the list of multiple items and values like below&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Item Name&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;BR /&gt;Kp123_K1&amp;nbsp; &amp;nbsp; &amp;nbsp; 29.35&lt;BR /&gt;&lt;STRONG&gt;FK569_K1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11.5&lt;/STRONG&gt;&lt;BR /&gt;Kp123_K2&amp;nbsp; &amp;nbsp; &amp;nbsp; 30.25&lt;BR /&gt;&lt;STRONG&gt;FK569_K2&amp;nbsp; &amp;nbsp; &amp;nbsp; 13.11&lt;/STRONG&gt;&lt;BR /&gt;Kp123_K3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;26.56&lt;BR /&gt;&lt;STRONG&gt;FK569_K3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12.00&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;In the new column, I should get if (item name(&lt;STRONG&gt;FK569_K1)&amp;lt;11.9) then item name(Kp123_K1 )* 24&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;&amp;nbsp;if the condition is satisfied value will return( Ex.&amp;nbsp; 29.35* 24) else &lt;STRONG&gt;false &lt;/STRONG&gt;should be return.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Can any one help me the dax formula for this to get new custom column&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for the help&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 09:50:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-custom-column-with-Multiple-condition-on-Column/m-p/3235398#M118892</guid>
      <dc:creator>Lakshmi1294</dc:creator>
      <dc:date>2023-05-15T09:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom column with Multiple condition on Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-custom-column-with-Multiple-condition-on-Column/m-p/3235480#M118907</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430345" data-lia-user-login="Lakshmi1294" class="lia-mention lia-mention-user"&gt;Lakshmi1294&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;No sure if I correctly understood the requirement. However, please try&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Result = 
IF ( 
    'Table'[Value] &amp;lt; 11.9, 
    MAXX ( 
        CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Group] ) ),
        'Table'[Value]
    ) * 24
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 10:51:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-custom-column-with-Multiple-condition-on-Column/m-p/3235480#M118907</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-15T10:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom column with Multiple condition on Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-custom-column-with-Multiple-condition-on-Column/m-p/3236579#M118978</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to create group field, could you please tell me without out group and also&amp;nbsp; if value&amp;lt;11.9 it should pick up the above value of respective item values&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 00:50:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-custom-column-with-Multiple-condition-on-Column/m-p/3236579#M118978</guid>
      <dc:creator>Lakshmi1294</dc:creator>
      <dc:date>2023-05-16T00:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom column with Multiple condition on Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-custom-column-with-Multiple-condition-on-Column/m-p/3249951#M119873</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430345" data-lia-user-login="Lakshmi1294" class="lia-mention lia-mention-user"&gt;Lakshmi1294&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;All1 =
var _if=
IF('Table'[Value]&amp;lt;11.9,1,0)
return
IF(
    _if =0 ,'Table'[Value] *24)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Max1 =
IF('Table'[Value]&amp;lt;11.9
,
MAXX(ALL('Table'),[Value]) * 24,BLANK())&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&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;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 01:37:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-custom-column-with-Multiple-condition-on-Column/m-p/3249951#M119873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T01:37:55Z</dc:date>
    </item>
  </channel>
</rss>

