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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
smothry
Frequent Visitor

Modify unmatched relationship result from "(Blank)" to custom string in Slicer

Scenario:

I have a few multi-column data tables that have a common column for filtering. Let's call this column pallet number. I have a separate table, let's call it full pallet list table, that has a column that is a list of pallet numbers that may be in any of these other tables...and then some, and maybe one other column which is an attribute I'd like to slice by (the slicer column).  The full pallet list table is linked via a 1 to many relationship to each of the data tables so that I can use a slicer from the pallet list table to slice all of the data tables by their pallet columns at once. 

 

Problem: 

There are pallet values in the full pallet list table that are not in any of the data tables therefore the slicer has an option for "(Blank)" which is basically anything that isn't joined through the 1 to many relationship. I want the slicer to display a custom string in place of "(Blank)". How do I do this?

 

Any help is greatly appreciated!

1 REPLY 1
some_bih
Super User
Super User

Hi @smothry I understand that two scenario could lead to blank rows

1. Real blank row - like no item line populated in column Pallet_Number or

2. column Pallet_Number is populated but this number is  missing in the table with all ListOfPalletNumber

This blank is due to relationship

 

Possible solutions: create two calculated columns as below. 

SlicerFormulaRealBlank =
IF (
    ISBLANK ( FactTable[Pallet_Number] ),
    "This is Real blank row in column Pallet_Number",
    FactTable[Pallet_Number]
)
 
SlicerBlankAsNoNumberInListOfPalletNumber =
IF(ISBLANK(RELATED(ListOfPalletNumber[PalletNumber])),"This is blank row - relationship",FactTable[Pallet_Number])




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

Proud to be a Super User!






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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors