<?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: Convert DAX measure to create new custom column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3128230#M111202</link>
    <description>&lt;P&gt;Yes. Already established.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 14:09:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-13T14:09:55Z</dc:date>
    <item>
      <title>Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3125722#M111018</link>
      <description>&lt;P&gt;I have a table with a column called Author which contains both employee names and manager names. I created a measure that checks another column called Employee Name to see if the names are within the Author column to produce a value of either "Employee" or "Manager" (Is the Author an Employee or a Manager?). I was able to get the results I want from the measure but in order to use that information in my analysis I need to create a new column with these values. I need help converting my DAX measure to a new custom column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Author is Employee = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CONTAINS&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'GetDevelopmentGoalDetail'&lt;/SPAN&gt;&lt;SPAN&gt;[Column1.Author]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'GetDevelopmentGoalDetail'&lt;/SPAN&gt;&lt;SPAN&gt;[Column1.Author]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;GetDevelopmentGoalDetail&lt;/SPAN&gt;&lt;SPAN&gt;[Employee Name]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Employee"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Manager"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Here are the results that I was able to create from my measure but need those values in a new custom column.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is dummy data so no sensitive information is shared.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 22:00:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3125722#M111018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-11T22:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3125729#M111019</link>
      <description>&lt;P&gt;hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Column =&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[Employee Name] IN&amp;nbsp;VALUES ( data[Column1.Author] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; "Employee",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; "Manager"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 Mar 2023 22:39:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3125729#M111019</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-11T22:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126027#M111036</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Seems they are both in the same table. You can simply do&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Author is Employee =
IF (
    'GetDevelopmentGoalDetail'[Column1.Author] = 'GetDevelopmentGoalDetail'[Employee Name],
    "Employee",
    "Manager"
)&lt;/LI-CODE&gt;
&lt;P&gt;or even&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Author is Employee =
IF (
    'GetDevelopmentGoalDetail'[Employee Name] = BLANK ( ),
    "Manager",
    "Employee"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 12 Mar 2023 10:58:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126027#M111036</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-12T10:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126432#M111058</link>
      <description>&lt;P&gt;Thank you, how could your first example be modified if it was [Employee Name] is in another table? If I simply change the table name in the current solution, an error of 'A table of multiple values was supplied where a single value was expected' is thrown.&amp;nbsp;&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;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2023 20:43:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126432#M111058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-12T20:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126661#M111067</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a relationship between the two tables?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 02:19:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126661#M111067</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-13T02:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126685#M111068</link>
      <description>&lt;P&gt;Yes, there is another table that has Employee Name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 02:30:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126685#M111068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-13T02:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126705#M111073</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, nut my question was: is the Employee table &amp;nbsp;related to the&amp;nbsp;&lt;SPAN&gt;GetDevelopmentGoalDetail table?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 02:45:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126705#M111073</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-13T02:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126839#M111084</link>
      <description>&lt;P&gt;Yes, they both contain Employee Name.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 04:43:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126839#M111084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-13T04:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126886#M111085</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Let me be more specific. Do you have or have you created an active relationship between the two tables?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 05:28:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3126886#M111085</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-13T05:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3128230#M111202</link>
      <description>&lt;P&gt;Yes. Already established.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 14:09:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3128230#M111202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-13T14:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3128277#M111204</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thrn you can try&lt;/P&gt;
&lt;P&gt;Author is Employee =&lt;BR /&gt;IF (&lt;BR /&gt;RELATED ( 'GetDevelopmentGoalDetail'[Employee Name] ) = BLANK (),&lt;BR /&gt;"Manager",&lt;BR /&gt;"Employee"&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;however, in this case I'm wondering why&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;didn't work &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 14:25:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3128277#M111204</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-13T14:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Convert DAX measure to create new custom column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3128466#M111212</link>
      <description>&lt;P&gt;I will mark you solution above as correct, but was curious if the column was from another table. The data is called from an API and there are some repetative datasets. Was checking to confirm accuracy of my original results. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 15:21:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-DAX-measure-to-create-new-custom-column/m-p/3128466#M111212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-13T15:21:35Z</dc:date>
    </item>
  </channel>
</rss>

