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
shhafiz
Microsoft Employee
Microsoft Employee

Assigning Value instead of Blank in Slicer

Table Relations and Blanks Options

 

I am facing similar problem as discussed in the link above. To summarize, because of unmatched value in relationship, a (Blank) option appears in slicer. I want this Blank value to show an assigned text on slicer so it's visually more appealing to the user.

 

One option is to have a dummy row in one table for each of the unmatched in the other, but that would introduce invalid data in one table and this is something I don't want.

 

Thanks.

 

 

 

7 REPLIES 7
v-sihou-msft
Microsoft Employee
Microsoft Employee

@shhafiz

 

Currently, you can only create calculated column to assign custom text value for not mached values, like: 

 

Column = IF(ISBLANK(RELATED(Table[col])),"not match", RELATED(Table[col]))

Regards, 

@v-sihou-msft

 

In order to use related, the two tables must share this column right? If so, this doesn't apply to my case as the two tables are related by a different column. The values of these columns are coming as (Blank) for rows which are not matched in the other table.

@shhafiz can you share sample data and screen shot? What @v-sihou-msft proposed, should work.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

shhafiz
Microsoft Employee
Microsoft Employee

Capture.PNG

 

 

@parry2kI the above error message. I double checked the spelling of the Table and Column names. I am assuming it's the second part of not have relationship is causing the problem.

first and foremost, are these two tables related with each other, doesn't matter what column the are related on? Yes or No?

 

Are you adding new coloumn or measure?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

shhafiz
Microsoft Employee
Microsoft Employee

@parry2k

 

 

Yes, these two tables are related.

 

I am trying to add a new column. 

Can you share the sample data of two tables and related you set between those tables?

 

From your errors, it looks like 'Event Type' Column doesn't exists in 'Reviwed Resources' table. 

 

It will easier if you share sample data. Thanks



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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