<?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: Extract and display text from dim table based on what is on fact table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2583948#M74243</link>
    <description>&lt;P&gt;Thank you both Samarth_18 and Gao&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 19:36:29 GMT</pubDate>
    <dc:creator>matrix_user</dc:creator>
    <dc:date>2022-06-16T19:36:29Z</dc:date>
    <item>
      <title>Extract and display text from dim table based on what is on fact table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2576108#M73770</link>
      <description>&lt;P&gt;Hello I would like help on creating a calculated column to display addresses from a dim table based on the post code in a fact table. I already have the two tables related via postcodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the addresses in green below are displayed in a new created calculated column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; Thanks in advance,&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 21:12:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2576108#M73770</guid>
      <dc:creator>matrix_user</dc:creator>
      <dc:date>2022-06-13T21:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extract and display text from dim table based on what is on fact table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2576702#M73796</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329134" data-lia-user-login="matrix_user" class="lia-mention lia-mention-user"&gt;matrix_user&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry If I misunderstood your question,&lt;/P&gt;
&lt;P&gt;Why do you need to refer fact table when you have everything available in dimention to create a address column. You could directly create a column as below:-&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Address = [Postcode]&amp;amp;" "&amp;amp;[Locality]&amp;amp;" "&amp;amp;[State]&amp;amp;" "&amp;amp;[Country]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 05:48:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2576702#M73796</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2022-06-14T05:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extract and display text from dim table based on what is on fact table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2577338#M73836</link>
      <description>&lt;P&gt;Hello Samarth_18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I may have not illustrated it properly. A further illustration is attached below. My fact table gets updated with new postcodes only, (no Locality, or State). The dim table is somewhat a complete reference of all the postcode of Australia with Locaility, States, Country and other data such as Latitude and Longitude coordinates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to create addresses in the fact table, I was thinking of linking it to the dim table so everytime there is a refresh, the fact table will be assigned a&amp;nbsp; complete address from the dim table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there, I can use the map visuals and drag the addresses field.&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>Tue, 14 Jun 2022 10:01:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2577338#M73836</guid>
      <dc:creator>matrix_user</dc:creator>
      <dc:date>2022-06-14T10:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extract and display text from dim table based on what is on fact table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2577351#M73837</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329134" data-lia-user-login="matrix_user" class="lia-mention lia-mention-user"&gt;matrix_user&lt;/a&gt;&amp;nbsp;, I would suggest you to create a column in fact table as below:-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Address =
RELATED ( dim_table[Postcode] ) &amp;amp; " "
    &amp;amp; RELATED ( dim_table[Locality] ) &amp;amp; " "
    &amp;amp; RELATED ( dim_table[State] ) &amp;amp; " "
    &amp;amp; RELATED ( dim_table[Country] )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 10:08:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2577351#M73837</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2022-06-14T10:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extract and display text from dim table based on what is on fact table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2577413#M73846</link>
      <description>&lt;P&gt;Yes I tried that but even though I related postcodes between the fact and dim table, Power BI seems to say the " the Locality [Postcode] either doesn't exist or doesn't have a relationship to any table available in the current context" When I managed the relationship, I could only use the many to many&amp;nbsp; cardinality and cross filter both.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 10:44:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2577413#M73846</guid>
      <dc:creator>matrix_user</dc:creator>
      <dc:date>2022-06-14T10:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extract and display text from dim table based on what is on fact table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2582017#M74109</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329134" data-lia-user-login="matrix_user" class="lia-mention lia-mention-user"&gt;matrix_user&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is that when the Post Code is used as a key in the dimension table, its value should be unique.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, we create a calculated column in the fact table. When the calculated column is iterated in the first row of the fact table, go from the fact table to the dim table to find the record with postcode="0200", but the dim table has two such records. , so it doesn't know which record to return.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;It is recommended that you consider rebuilding the dim table so that the dim table is on the "1" side of the relationship.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 05:52:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2582017#M74109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-16T05:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract and display text from dim table based on what is on fact table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2583948#M74243</link>
      <description>&lt;P&gt;Thank you both Samarth_18 and Gao&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 19:36:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-and-display-text-from-dim-table-based-on-what-is-on-fact/m-p/2583948#M74243</guid>
      <dc:creator>matrix_user</dc:creator>
      <dc:date>2022-06-16T19:36:29Z</dc:date>
    </item>
  </channel>
</rss>

