<?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: Table Relations and Blanks in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19654#M280</link>
    <description>&lt;P&gt;Hi gerggyb&lt;/P&gt;&lt;P&gt;you mentioned that ......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or transform the key field on all rows that don't have a match in the dimension to point to an alternate 'Unknown' key in the dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....... how would you do thatÉ do you have a sample? assuming that we dont have SQL server . and the DIM and the FACT are provided in a text file, my point is that you must do all the maneuvering in PowerBI only.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2016 02:23:11 GMT</pubDate>
    <dc:creator>SNik</dc:creator>
    <dc:date>2016-02-19T02:23:11Z</dc:date>
    <item>
      <title>Table Relations and Blanks</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19559#M272</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have 3 tables that have a 1 to many relation with each other&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product-----&amp;gt; catalog -----&amp;gt; 2015Data (fact)&lt;/P&gt;&lt;P&gt;the relations are sets with no errore&lt;/P&gt;&lt;P&gt;when for the first 2 tables i am using a Slicer and the Fact table a Table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the Product Slicer i see a Blank and the list of my Products, if i select Blank the data in the Catalog table gets wiped out but the data in the FACT remains without been filtered&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i fix this issue so that i can start slicing the data from Product table then CalatogTable and seeing the final filtered in the 2015Data fact table.&lt;/P&gt;&lt;P&gt;one thing that i see is in the FACT table i have the names of the Catalog and some are in french like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Catalog table ------&amp;gt;&amp;nbsp; 2015Data(Fact)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ACE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AÇÈ&lt;/P&gt;&lt;P&gt;and the relation doesnèt give me an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;whats the best approche&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 15:37:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19559#M272</guid>
      <dc:creator>SNik</dc:creator>
      <dc:date>2016-02-18T15:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table Relations and Blanks</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19571#M273</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6262"&gt;@SNik﻿&lt;/a&gt;&amp;nbsp;- As I recall from previous posts and &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/2462"&gt;@greggyb﻿&lt;/a&gt;&amp;nbsp;might be able to help you because I have seen him post on this before, the blank values in slicers are caused when you have some relationships that don't match up correctly. For example, you have a Product specified as part of the Catalog that is not in your Products table. That's the likely cause of your blanks in your slicers, something along those lines. Power BI has a way of making problematic data obvious like that.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 16:24:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19571#M273</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2016-02-18T16:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Table Relations and Blanks</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19584#M275</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler﻿&lt;/a&gt; has got it. So, I just had &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/DAX-Question-Customers-who-purchase-again-after-a-return/m-p/19583#M5891" target="_self"&gt;another post in another thread&lt;/A&gt; with a very different topic that is nevertheless relevant to this discussion. That post where I describe the dictionary associated with each field in a table is where we can find the source of this phantom blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler﻿&lt;/a&gt; said, when you have a row in the fact (many side of the 1:N) table that does not have an associated key in the dimension (one side of the 1:N), the storage engine will implicitly create a phantom-blank row. This phantom-blank becomes the lookup key for every row in the fact that doesn't have an appopriate lookup key in the dimension. This shows up in a few places. It becomes a display value, as you've seen in slicers. When you do a COUNTROWS( VALUES( 'Dimension'[Key] ) ), you'll see one more row than you expect. The row is the phantom-blank. You'll also see it in ALL(). This is because those functions reference not the values in the table rows, but in the column dictionary. DISTINCT() behaves identically to VALUES() in nearly every way, except it will omit the phantom-blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how do we get rid of it? We can either add an explicit row to the dimension for all possible values in the fact table, or we can alter the fact table to exclude those rows, or transform the key field on all rows that don't have a match in the dimension to point to an alternate 'Unknown' key in the dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you've altered the dimension or the fact or both, you should be able to refresh the entire model and the phantom-blank should be gone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This behavior differs from a foreign key in SQL or a relationship in Multidimensional, which both require that everything in the fact table have a matching row in the dimension table. Tabular is more permissive and lets you do things like this, and implicitly puts the pieces in place to support it.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 17:19:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19584#M275</guid>
      <dc:creator>greggyb</dc:creator>
      <dc:date>2016-02-18T17:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table Relations and Blanks</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19653#M279</link>
      <description>&lt;P&gt;Thank you all for the feed back, one other thing that&amp;nbsp;I found that might help other people is that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1-&amp;nbsp;I copied and past the data from PowerBI to a Note pad and i see blanks on the left side, this was an display issue by PowerBi anyways, i trimmed it off&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2- some case you see that the data looks the same from both tables, for example "ABC XYZ" is a name of a product, the issues was that between ABC and XYZ i was seen a space but in one table was a space and another was a Tab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 02:19:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19653#M279</guid>
      <dc:creator>SNik</dc:creator>
      <dc:date>2016-02-19T02:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table Relations and Blanks</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19654#M280</link>
      <description>&lt;P&gt;Hi gerggyb&lt;/P&gt;&lt;P&gt;you mentioned that ......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or transform the key field on all rows that don't have a match in the dimension to point to an alternate 'Unknown' key in the dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....... how would you do thatÉ do you have a sample? assuming that we dont have SQL server . and the DIM and the FACT are provided in a text file, my point is that you must do all the maneuvering in PowerBI only.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 02:23:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19654#M280</guid>
      <dc:creator>SNik</dc:creator>
      <dc:date>2016-02-19T02:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Table Relations and Blanks</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19801#M289</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6262"&gt;@SNik﻿&lt;/a&gt;, you can create a surrogate key and do all sorts of joins and transformations in Power Query. One way would be to merge the dimension with the fact in Power Query, and then create a new dimension key that is some default value for those rows which did not have an associated key in the dimension.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 03:39:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/19801#M289</guid>
      <dc:creator>greggyb</dc:creator>
      <dc:date>2016-02-20T03:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table Relations and Blanks</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/670642#M19133</link>
      <description>&lt;P&gt;'&lt;SPAN&gt;&amp;nbsp;and then create a new dimension key that is some default value for those rows which did not have an associated key in the dimension.'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I create a row the returns a default value for every value that does not match a key?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 05:27:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Table-Relations-and-Blanks/m-p/670642#M19133</guid>
      <dc:creator>gellismyers</dc:creator>
      <dc:date>2019-04-16T05:27:00Z</dc:date>
    </item>
  </channel>
</rss>

