<?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: One store with two possible IDs, how do I relate the fact table and dimension table? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-store-with-two-possible-IDs-how-do-I-relate-the-fact-table/m-p/3015197#M102372</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497663" data-lia-user-login="Royal_Trudel" class="lia-mention lia-mention-user"&gt;Royal_Trudel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your sample data seems unable to reflect the issue. are you going to update it? Or could you explain further?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 00:32:15 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-01-12T00:32:15Z</dc:date>
    <item>
      <title>One store with two possible IDs, how do I relate the fact table and dimension table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-store-with-two-possible-IDs-how-do-I-relate-the-fact-table/m-p/3014627#M102347</link>
      <description>&lt;P&gt;Hello fellow users! I've run into a small issue when dealing with my fact and dimension tables.&lt;/P&gt;&lt;P&gt;In our franchise, we have two iFood stores for some of our operations (not all of them) for marketing reasons... The problem is that, for instance, I can't relate ID 85 to Store2, for instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is an example of how my fact table looks:&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is an example of my dimension table:&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;As you can see, some of the stores don't have a second ID.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how I could relate these informations?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 17:51:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-store-with-two-possible-IDs-how-do-I-relate-the-fact-table/m-p/3014627#M102347</guid>
      <dc:creator>Royal_Trudel</dc:creator>
      <dc:date>2023-01-11T17:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: One store with two possible IDs, how do I relate the fact table and dimension table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-store-with-two-possible-IDs-how-do-I-relate-the-fact-table/m-p/3015197#M102372</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497663" data-lia-user-login="Royal_Trudel" class="lia-mention lia-mention-user"&gt;Royal_Trudel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your sample data seems unable to reflect the issue. are you going to update it? Or could you explain further?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 00:32:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-store-with-two-possible-IDs-how-do-I-relate-the-fact-table/m-p/3015197#M102372</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-12T00:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: One store with two possible IDs, how do I relate the fact table and dimension table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-store-with-two-possible-IDs-how-do-I-relate-the-fact-table/m-p/3015533#M102383</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497663" data-lia-user-login="Royal_Trudel" class="lia-mention lia-mention-user"&gt;Royal_Trudel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;New Table:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
Var _Table1=SUMMARIZE('DIMENSION','DIMENSION'[ID1],'DIMENSION'[Store])
Var _Table2=SUMMARIZE('DIMENSION','DIMENSION'[ID2],'DIMENSION'[Store])
Return
FILTER(UNION(_Table1,_Table2),[ID1]&amp;lt;&amp;gt;BLANK())&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&amp;nbsp;If not, let us know what you expect the output to be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 03:19:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/One-store-with-two-possible-IDs-how-do-I-relate-the-fact-table/m-p/3015533#M102383</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-01-12T03:19:50Z</dc:date>
    </item>
  </channel>
</rss>

