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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors