<?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: Get data from column from unrelated tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4666238#M178716</link>
    <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;, Thank you for reaching out to the Microsoft Community Forum.&lt;BR /&gt;&lt;BR /&gt;Please let us know if your issue is solved. If it is, consider marking the answers that helped&amp;nbsp;&lt;STRONG&gt;'Accept as Solution'&lt;/STRONG&gt;, so others with similar queries can find them easily. If not, please share the details.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Apr 2025 08:37:23 GMT</pubDate>
    <dc:creator>v-hashadapu</dc:creator>
    <dc:date>2025-04-24T08:37:23Z</dc:date>
    <item>
      <title>Get data from column from unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4597491#M176030</link>
      <description>&lt;P&gt;Is there a way to get data from table B based on match between columns from A and B even thought tables are unrelated.&amp;nbsp; Result is in table C.&amp;nbsp; Is there are duplicates in table B ignore them and take value from "Letter" on the first encounter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Thu, 06 Mar 2025 01:36:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4597491#M176030</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2025-03-06T01:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from column from unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4597667#M176034</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new table by DAX.&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;LI-CODE lang="markup"&gt;TABLE C = 
    ADDCOLUMNS (
        'Table A',
        "@letter",
            MINX (
                FILTER (
                    'Table B',
                    'Table B'[id] = 'Table A'[id]
                        &amp;amp;&amp;amp; 'Table B'[code] = 'Table A'[code]
                ),
                'Table B'[letter]
            )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 04:02:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4597667#M176034</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-03-06T04:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from column from unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4598607#M176054</link>
      <description>&lt;P&gt;Would you mind explaining what parts of this code executes first please. I am just trying to understand how this works. Does the table first gets filtered based on these conditions?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 13:20:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4598607#M176054</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2025-03-06T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from column from unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4599662#M176086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried to add comments into the code like below.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TABLE C =
    ADDCOLUMNS (
        'Table A',
        // Use the ADDCOLUMNS function to create a new calculated column within 'Table A'
        "@letter",
            // Name the calculated column as "@letter"
            // Define the expression for the "@letter" column
            MINX (
                // Use the MINX function to return the minimum value of the expression specified
                // This ensures we get the smallest (alphabetically or numerically) 'letter' value
                FILTER (
                    // Use the FILTER function to create a subset of 'Table B'
                    // The subset includes rows where both conditions below are true:
                    'Table B',
                    'Table B'[id] = 'Table A'[id] // Condition 1: Match the 'id' in 'Table B' with the 'id' in 'Table A'
                        &amp;amp;&amp;amp; 'Table B'[code] = 'Table A'[code] // Condition 2: Match the 'code' in 'Table B' with the 'code' in 'Table A'
                ),
                // The column from 'Table B' to evaluate: 'Table B'[letter]
                // This is the column from which we want to extract the minimum value
                'Table B'[letter]
            )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Fri, 07 Mar 2025 03:44:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4599662#M176086</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-03-07T03:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from column from unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4601832#M176168</link>
      <description>&lt;P&gt;Thank you!!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;If first table A had 3 more columns is there a way to somoehow only take first three (id, code and name) and then do same calculations as before?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 00:39:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4601832#M176168</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2025-03-09T00:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from column from unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4601880#M176170</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;please try this&amp;nbsp;&lt;/P&gt;&lt;P&gt;transform&amp;gt; add column&amp;gt; custom column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;matchedRow = Table.SelectRows(#"Table b", (row) =&amp;gt; row[id] = _[id] and row[code] = _[code])&lt;BR /&gt;in&lt;BR /&gt;if Table.RowCount(matchedRow) &amp;gt; 0 then matchedRow[letter]{0} else null&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 05:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4601880#M176170</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2025-03-09T05:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from column from unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4602030#M176174</link>
      <description>&lt;P&gt;I was more hoping to use DAX as I was aware on how to do this in PQ. Also I was hoping for the table to look like this as I want to take only some columns from table A. what if table had 4 or more columns (example below) and we wanted to use only first three columns in this calculation to get same output. Is there a way for this whole code to get wrapped up with selectcolumns?&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;id&lt;/TD&gt;&lt;TD&gt;code&lt;/TD&gt;&lt;TD&gt;name&lt;/TD&gt;&lt;TD&gt;Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;222&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;Monday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;333&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;Tuesday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;333&lt;/TD&gt;&lt;TD&gt;222&lt;/TD&gt;&lt;TD&gt;Jim&lt;/TD&gt;&lt;TD&gt;Friday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;444&lt;/TD&gt;&lt;TD&gt;333&lt;/TD&gt;&lt;TD&gt;Elaine&lt;/TD&gt;&lt;TD&gt;Monday&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 11:00:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4602030#M176174</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2025-03-09T11:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from column from unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4602134#M176179</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It will be very helpful if I can see your sample pbix file.&lt;/P&gt;
&lt;P&gt;Please provide your sample pbix file's link, and then I can try to look into it.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 16:31:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4602134#M176179</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-03-09T16:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get data from column from unrelated tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4666238#M178716</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;, Thank you for reaching out to the Microsoft Community Forum.&lt;BR /&gt;&lt;BR /&gt;Please let us know if your issue is solved. If it is, consider marking the answers that helped&amp;nbsp;&lt;STRONG&gt;'Accept as Solution'&lt;/STRONG&gt;, so others with similar queries can find them easily. If not, please share the details.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 08:37:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-data-from-column-from-unrelated-tables/m-p/4666238#M178716</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-04-24T08:37:23Z</dc:date>
    </item>
  </channel>
</rss>

