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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
shhafiz
Employee
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
Employee
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.

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.

@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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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