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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

How to avoid blank codes/values being removed

Hi all,

 

I hope everyone is well!

 

I am creating a new Dashboard but I'm having some issues I'm hoping someone might have an answer to 🙂

 

I have two main tables, a PostedSalesShipmentHeader and a ShipToAddress one. Both tables include a 'Ship-to Code', but when creating a relationship between them I'm getting a Many-to Many message as the ShipToAddress table does not contain a blank value in the code column, whereas the SalesShipmentHeader table does. Here's some screenshots:

 

FJH2024_0-1731061084088.png

FJH2024_1-1731061091693.png

 

So I'm finding that, when adding values to a table visual, the blank codes will stay there up until the point I bring in a value from the ShipToAddress table:

FJH2024_2-1731061203198.pngFJH2024_3-1731061212993.png

 

I want to keep the blank values in the Ship_to_Code column visible in the table, so if the Code field is blank then the Address column doesn't populate with anything. Is there a way for me to do this?

 

I hope this makes sense! Thanks so much for any help in advance 🙂 

 

1 ACCEPTED SOLUTION
vojtechsima
Super User
Super User

@Anonymous  hello,

the way power bi "hide" the row is that there is blank value for the measure you use. If you wanna brute force it, you can set your field by right clicking and click "Show data with no values" (or something like that.

Alternatively, you can modify measure that would calculate something for the blank values as well. (be careful with these, this can go quickly sidewise, as it will assign value to everything in your table).






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

View solution in original post

2 REPLIES 2
vojtechsima
Super User
Super User

@Anonymous  hello,

the way power bi "hide" the row is that there is blank value for the measure you use. If you wanna brute force it, you can set your field by right clicking and click "Show data with no values" (or something like that.

Alternatively, you can modify measure that would calculate something for the blank values as well. (be careful with these, this can go quickly sidewise, as it will assign value to everything in your table).






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.
Angith_Nair
Continued Contributor
Continued Contributor

Hi @Anonymous 

 

Use the below dax:

DisplayedAddress = 
IF(
    ISBLANK(SELECTEDVALUE(PostedSalesShipmentHeader[Ship-to Code])),
    BLANK(),
    MAX(ShipToAddress[Address]) 
)

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.