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
hpilearn
Frequent Visitor

Changing mismatch 'Blank' with text

Hi, 

 

I want to create a visual that is using data from 3 related tables but encountered some mismatch issue. The sample tables look like this:

 

Table A

Item NumberVolume
a10
a5
b11
null7

 

Table B (no null value in this table)

Item NumberCategory Number
a001
b002

 

Table C  (no null value in this table)

Catogory NumberCatogory Name
001Grocery
002Kitchen

 

As I want to create a pie chart presenting the volume distribution by item's Catogory Name, I got some 'blank' because there is 'null' value in the first table (as below).

hpilearn_0-1655479247591.png

 

Known I cannot combine the existing 3 tables into 1, and now I want to change the 'blank' in my pie chart to 'unknown'. Since the 'blank' here is not a value but a representation of mismatch. How can I achive this? Thanks!

 

 

My attempts:

1. change the null value in Table A to unknown -- fail

2. append a row with null value to both Table B and C, and try to link "null" with "null" -- still not working

1 ACCEPTED SOLUTION

@hpilearn you need to have something that will represent the values in table A also in table B (and in this case also table C cause they are in 1:1 so they actually should be 1 table). If you replace the null with unkonwn you also need to have the same unknown text in table B also with unknown text for category number and also in table C unkonwn text on the values of the new row you need to add.
Better to join table B and C before you bring it to the model, then you will need to do that only on one table.


View solution in original post

5 REPLIES 5
SpartaBI
Community Champion
Community Champion

@hpilearn the blank appears when you have records in the many side of a relationship that doesn't have a matching key in the table at the one side. You can't replace it. You should always strive to have a model that each row in the many side has a represntative in the one side. Can you share a screenshot of the model view and write what columns play in the relationship.

Hi, thank you very much for the help! The relationship look like this:hpilearn_0-1655481849255.png

There are null value in table A. Table B&C don't have any null value. 

 

@hpilearn you need to have something that will represent the values in table A also in table B (and in this case also table C cause they are in 1:1 so they actually should be 1 table). If you replace the null with unkonwn you also need to have the same unknown text in table B also with unknown text for category number and also in table C unkonwn text on the values of the new row you need to add.
Better to join table B and C before you bring it to the model, then you will need to do that only on one table.


Hariharan_R
Solution Sage
Solution Sage

Hi,

To achieve this in simple way, you can uncheck the blank on the visual filter.

Hariharan_R_0-1655480966406.png

 

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


Hi Hari, thank you for your reply. I'm tyring to replace the "blank" with the text "unknown" but not to hide it. Do you have any suggestion on that?

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.