<?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: Calculated column using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-using-DAX/m-p/3221448#M117748</link>
    <description>&lt;P&gt;HI,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I assume your table has a kind of INDEX column that defines which one is the first one and which ones are not the first one.&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;Expected result CC =
VAR _firstindex =
    MAXX (
        INDEX (
            1,
            SUMMARIZE ( Data, Data[Lead ID], Data[Index] ),
            ORDERBY ( Data[Index], ASC ),
            KEEP,
            PARTITIONBY ( Data[Lead ID] )
        ),
        Data[Index]
    )
RETURN
    IF ( Data[Index] = _firstindex, "Eligible", "Ineligible" )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 06:49:26 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2023-05-05T06:49:26Z</dc:date>
    <item>
      <title>Calculated column using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-using-DAX/m-p/3221366#M117743</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a column " Eligible"using dax. I have lead ID column in my table. If this column contains duplicate lead is then 1 St captured lead id should be eligible and other should be in eligible.for example if ID 4566 repeated 3 times ID 4566- eligible&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ID 4566- Ineligible&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID 4566 - Ineligible&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone advice me on this issue. Thanks !&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 05:53:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-using-DAX/m-p/3221366#M117743</guid>
      <dc:creator>Farhana110</dc:creator>
      <dc:date>2023-05-05T05:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-using-DAX/m-p/3221448#M117748</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I assume your table has a kind of INDEX column that defines which one is the first one and which ones are not the first one.&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;Expected result CC =
VAR _firstindex =
    MAXX (
        INDEX (
            1,
            SUMMARIZE ( Data, Data[Lead ID], Data[Index] ),
            ORDERBY ( Data[Index], ASC ),
            KEEP,
            PARTITIONBY ( Data[Lead ID] )
        ),
        Data[Index]
    )
RETURN
    IF ( Data[Index] = _firstindex, "Eligible", "Ineligible" )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 06:49:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-using-DAX/m-p/3221448#M117748</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-05-05T06:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-using-DAX/m-p/3221892#M117775</link>
      <description>&lt;P&gt;Hi jihwan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your support, DAX is working properly. Could you please help to combine two more condition in above DAX,&lt;/P&gt;&lt;P&gt;1. When payout in local currency =0 and payout in USD = 0 then " ineligible Emp not found"&lt;/P&gt;&lt;P&gt;2.when lead id " L/CR-000000000" or lead id =L/CR - 00000001 then ineligible, duplicate customer&amp;nbsp;&lt;/P&gt;&lt;P&gt;Else eligible&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 10:42:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-using-DAX/m-p/3221892#M117775</guid>
      <dc:creator>Farhana110</dc:creator>
      <dc:date>2023-05-05T10:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated column using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-using-DAX/m-p/3223267#M117938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please share your sample pbix file's link.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 15:39:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-column-using-DAX/m-p/3223267#M117938</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-05-06T15:39:28Z</dc:date>
    </item>
  </channel>
</rss>

