<?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: Create custom column with with effective dated field in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-custom-column-with-with-effective-dated-field/m-p/2886806#M93595</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your datamodel looks like, but please try the below for creating a new column whether it suits your requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ProfType calculated column =
VAR _max =
    MAXX (
        FILTER (
            ProfessionalType,
            ProfessionalType[EffDate] &amp;lt;= EARLIER ( ProfessionalType[EffDate] )
                &amp;amp;&amp;amp; ProfessionalType[ProfessionalType]
                    = EARLIER ( ProfessionalType[ProfessionalType] )
        ),
        ProfessionalType[EffDate]
    )
RETURN
    MAXX (
        FILTER (
            ProfessionalType,
            ProfessionalType[EffDate] = _max
                &amp;amp;&amp;amp; ProfessionalType[ProfessionalType]
                    = EARLIER ( ProfessionalType[ProfessionalType] )
        ),
        ProfessionalType[ProfessionalType]
    )
&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 05 Nov 2022 04:56:38 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-11-05T04:56:38Z</dc:date>
    <item>
      <title>Create custom column with with effective dated field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-custom-column-with-with-effective-dated-field/m-p/2886737#M93586</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure that is working just fine:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ProfType = 
var _max = MAXX( FILTER( ProfessionalType, ProfessionalType[EffDate] &amp;lt;= MAX( Dates[Date] ) ), ProfessionalType[EffDate] )
return
Calculate(
	max( ProfessionalType[ProfessionalType] ),
	Filter( ProfessionalType,
		ProfessionalType[EffDate] = _max
		)
	)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that it returns a result for every Professional, even if they have no other data for a time period. So I think it would be better if this measure was a calculated column in the table instead, but I can't figure out the syntax to make that happen. Help!&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 02:24:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-custom-column-with-with-effective-dated-field/m-p/2886737#M93586</guid>
      <dc:creator>ShaelynFrench</dc:creator>
      <dc:date>2022-11-05T02:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom column with with effective dated field</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-custom-column-with-with-effective-dated-field/m-p/2886806#M93595</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your datamodel looks like, but please try the below for creating a new column whether it suits your requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ProfType calculated column =
VAR _max =
    MAXX (
        FILTER (
            ProfessionalType,
            ProfessionalType[EffDate] &amp;lt;= EARLIER ( ProfessionalType[EffDate] )
                &amp;amp;&amp;amp; ProfessionalType[ProfessionalType]
                    = EARLIER ( ProfessionalType[ProfessionalType] )
        ),
        ProfessionalType[EffDate]
    )
RETURN
    MAXX (
        FILTER (
            ProfessionalType,
            ProfessionalType[EffDate] = _max
                &amp;amp;&amp;amp; ProfessionalType[ProfessionalType]
                    = EARLIER ( ProfessionalType[ProfessionalType] )
        ),
        ProfessionalType[ProfessionalType]
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 05 Nov 2022 04:56:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-custom-column-with-with-effective-dated-field/m-p/2886806#M93595</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-11-05T04:56:38Z</dc:date>
    </item>
  </channel>
</rss>

