<?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: DAXUDF Reference a column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAXUDF-Reference-a-column/m-p/4831504#M184547</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file, and please try something like below.&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;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Sep 2025 18:04:43 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2025-09-21T18:04:43Z</dc:date>
    <item>
      <title>DAXUDF Reference a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAXUDF-Reference-a-column/m-p/4831467#M184544</link>
      <description>&lt;P&gt;So, i want to make a DAX UDF that takes a (one-column) table as input and outputs a concatenation of all distinct values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like:&lt;BR /&gt;&lt;BR /&gt;DEFINE FUNCTION&lt;/P&gt;&lt;P&gt;ConcValues = (column: Table) =&amp;gt; CONCATENATEX( DISTINCT(column), &lt;EM&gt;???columnName???&lt;/EM&gt;, ", ")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since i can pass any table, the column name is variable and cannot be hard-coded in the UDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to implement this? How to make a reference to a column name? Or how to reference the column of a table by a number, i.e. the 2nd column of the table or the first column, etc)&lt;/P&gt;</description>
      <pubDate>Sun, 21 Sep 2025 16:01:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAXUDF-Reference-a-column/m-p/4831467#M184544</guid>
      <dc:creator>nyarlathotep</dc:creator>
      <dc:date>2025-09-21T16:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAXUDF Reference a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAXUDF-Reference-a-column/m-p/4831504#M184547</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file, and please try something like below.&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;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Sep 2025 18:04:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAXUDF-Reference-a-column/m-p/4831504#M184547</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-09-21T18:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAXUDF Reference a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAXUDF-Reference-a-column/m-p/4832640#M184587</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;that works! I could have sworn that i had tried &lt;EM&gt;anyref&lt;/EM&gt; but i must have messed somewhere else - my actual measure is a bit more complex that the simplified version i posted here. Anyway, problem solved, thanks mate!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 16:52:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAXUDF-Reference-a-column/m-p/4832640#M184587</guid>
      <dc:creator>nyarlathotep</dc:creator>
      <dc:date>2025-09-22T16:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAXUDF Reference a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAXUDF-Reference-a-column/m-p/4852587#M185208</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;well done! Thank you for providing anyref hint&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 08:29:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAXUDF-Reference-a-column/m-p/4852587#M185208</guid>
      <dc:creator>nandic</dc:creator>
      <dc:date>2025-10-17T08:29:09Z</dc:date>
    </item>
  </channel>
</rss>

