<?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: Relationships filter out unmapped rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3477846#M132911</link>
    <description>&lt;P&gt;If you change relationship to 'single' as you mentioned you will not be able to see right data as filter context will not be flowing down from category table to sales table. So in this case you will see sales for all products repeated in each category which is wrong.&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;</description>
    <pubDate>Mon, 16 Oct 2023 05:05:06 GMT</pubDate>
    <dc:creator>p0lskiy</dc:creator>
    <dc:date>2023-10-16T05:05:06Z</dc:date>
    <item>
      <title>Relationships filter out unmapped rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3475176#M132742</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My model contains 4 tables as on the screenshot below:&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;&lt;P&gt;Each product can be assigned to multiple categories and also some products might not be assined to any category.&lt;/P&gt;&lt;P&gt;In the example below PRODUCT J has sales of 150 and not assigned to any Category. When I build a visual [Category Name - Sales], I can see sales by each category, where PRODUCT J sales are missing and only included in the total line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: how to make visible BLANK category line with sales for unmapped product?&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;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Oct 2023 08:50:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3475176#M132742</guid>
      <dc:creator>p0lskiy</dc:creator>
      <dc:date>2023-10-13T08:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships filter out unmapped rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3475263#M132749</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497536" data-lia-user-login="p0lskiy" class="lia-mention lia-mention-user"&gt;p0lskiy&lt;/a&gt;&amp;nbsp;did you try to remove PRODUCT_NAME from your second table?&lt;/P&gt;&lt;P&gt;Or try feature, show items no data on link&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-show-items-no-data" target="_self"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-show-items-no-data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 09:46:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3475263#M132749</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-10-13T09:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships filter out unmapped rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3475510#M132764</link>
      <description>&lt;P&gt;Sorry but it did not help:&lt;/P&gt;&lt;P&gt;1. PRODUCT table is required with all other dimensions in the table (PRODUCT NAME is only one as an example).&lt;/P&gt;&lt;P&gt;2. If you try 'show items with no data' it all products but still without sales.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 11:46:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3475510#M132764</guid>
      <dc:creator>p0lskiy</dc:creator>
      <dc:date>2023-10-13T11:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships filter out unmapped rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3475766#M132772</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497536" data-lia-user-login="p0lskiy" class="lia-mention lia-mention-user"&gt;p0lskiy&lt;/a&gt;&amp;nbsp;on relationship choose Edit Relationship and Single.&lt;/P&gt;&lt;P&gt;Create measure with zero (not best practice but works on small dataset), like&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mSalesWithZeroAdd =&lt;/SPAN&gt; &lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[SALES]&lt;/SPAN&gt;&lt;SPAN&gt;)+&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I tried to recreate your datamodel with some dummy names and numbers, adjust to your table names and measures.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The last picture below shows that "product" named 11-Name is with sales 0 .&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&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;img /&gt;&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;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did I answer your question? Kudos appreciated / accept solution!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 13:59:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3475766#M132772</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-10-13T13:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships filter out unmapped rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3477846#M132911</link>
      <description>&lt;P&gt;If you change relationship to 'single' as you mentioned you will not be able to see right data as filter context will not be flowing down from category table to sales table. So in this case you will see sales for all products repeated in each category which is wrong.&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;</description>
      <pubDate>Mon, 16 Oct 2023 05:05:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3477846#M132911</guid>
      <dc:creator>p0lskiy</dc:creator>
      <dc:date>2023-10-16T05:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships filter out unmapped rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3478355#M132938</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497536" data-lia-user-login="p0lskiy" class="lia-mention lia-mention-user"&gt;p0lskiy&lt;/a&gt;&amp;nbsp;you realy want BOTH type of relationship? How you going to interpret results? Are you ok with it? If yes, please share example with expected output as my example is not close to yours.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 09:12:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3478355#M132938</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-10-16T09:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships filter out unmapped rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3478406#M132944</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great to share the pbix file but I can't find the option here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not see anything strange using both directions in relationships. Below is the representation which is pretty logical:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Desired result is to have blank line with reported sales for the products which do not belong to any of the categories. In this case it is product J with 150 sales but it does not belog to any category (missing in table 'ProductToCategory'):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 09:37:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3478406#M132944</guid>
      <dc:creator>p0lskiy</dc:creator>
      <dc:date>2023-10-16T09:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships filter out unmapped rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3478776#M132957</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497536" data-lia-user-login="p0lskiy" class="lia-mention lia-mention-user"&gt;p0lskiy&lt;/a&gt;&amp;nbsp;if you have 365 account share link or via gmail.&lt;/P&gt;&lt;P&gt;Without model, I already show you my approach.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 12:07:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-filter-out-unmapped-rows/m-p/3478776#M132957</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-10-16T12:07:12Z</dc:date>
    </item>
  </channel>
</rss>

