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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
hpatel123
Regular Visitor

Table relationship with non-item

This might be easy, but I can't seem to figure it out. I have two table table with 1 (unquie WBSs and large category) to M (large table with many WBSs) relationship for a column with WBS numbers. Then I add a filter of Category to view the large table in a table format. For any WBS not found in the unique table, can I aumatically refer them to a specific Category,  so they don't show as '(Blank)'? 

1 ACCEPTED SOLUTION
hnguy71
Super User
Super User

Hi @hpatel123 ,

Ideally your unique WBS table should hold all possible values.  We typically refer to this as "referential integrity" where the relationship and data quality should be consistent to prevent incorrect or incomplete data. When one or more key fields are missing key values we call this an "RI violation".

 

If I'm not mistaken, you have a field called "Category" which can sometimes be blank and you'd like it to default to a certain category? The easiest way is within powerquery where it is possible to replace those values:

hnguy71_0-1720191117812.png

hnguy71_1-1720191152193.png

 

You can also do it in DAX as well but as a new calculated column:

hnguy71_2-1720191282853.png

 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

2 REPLIES 2
hpatel123
Regular Visitor

that helped! thank you!

hnguy71
Super User
Super User

Hi @hpatel123 ,

Ideally your unique WBS table should hold all possible values.  We typically refer to this as "referential integrity" where the relationship and data quality should be consistent to prevent incorrect or incomplete data. When one or more key fields are missing key values we call this an "RI violation".

 

If I'm not mistaken, you have a field called "Category" which can sometimes be blank and you'd like it to default to a certain category? The easiest way is within powerquery where it is possible to replace those values:

hnguy71_0-1720191117812.png

hnguy71_1-1720191152193.png

 

You can also do it in DAX as well but as a new calculated column:

hnguy71_2-1720191282853.png

 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.