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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.