Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
p0lskiy
Frequent Visitor

Relationships filter out unmapped rows

Hello Community,

 

My model contains 4 tables as on the screenshot below: 

 

p0lskiy_0-1697186564419.png

 

Each product can be assigned to multiple categories and also some products might not be assined to any category.

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.

 

Question: how to make visible BLANK category line with sales for unmapped product?

 

p0lskiy_1-1697186772858.png

 

Thank you!

7 REPLIES 7
some_bih
Super User
Super User

Hi @p0lskiy on relationship choose Edit Relationship and Single.

Create measure with zero (not best practice but works on small dataset), like

mSalesWithZeroAdd = sum(Sales[SALES])+0
 
I tried to recreate your datamodel with some dummy names and numbers, adjust to your table names and measures.
The last picture below shows that "product" named 11-Name is with sales 0 .
 
 

 

 

 

 

some_bih_1-1697205233372.png

 

 

some_bih_0-1697205196698.png

 

some_bih_2-1697205409825.png

Did I answer your question? Kudos appreciated / accept solution!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






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.

 

 

 

Hi @p0lskiy 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.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Hello @some_bih ,

 

It would be great to share the pbix file but I can't find the option here.

 

I do not see anything strange using both directions in relationships. Below is the representation which is pretty logical:

 

p0lskiy_0-1697448706958.png

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'):

 

p0lskiy_2-1697448850716.png

p0lskiy_3-1697448945086.png

 

Thanks

Hi @p0lskiy if you have 365 account share link or via gmail.

Without model, I already show you my approach.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






some_bih
Super User
Super User

Hi @p0lskiy did you try to remove PRODUCT_NAME from your second table?

Or try feature, show items no data on link

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-show-items-no-data 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Sorry but it did not help:

1. PRODUCT table is required with all other dimensions in the table (PRODUCT NAME is only one as an example).

2. If you try 'show items with no data' it all products but still without sales.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.