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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
hamadani
Frequent Visitor

Replace (Blank) when Merging Two Tables

Hi,

 

I have two tables as follows:

 

Table 1

Case Id          Case Name
1A
2B
3C
4D
5E
6F
7G


Table 2

Case Id                 Stage
1Stage I
2Stage I
4Stage II
5Stage III

 

I have created a releationship between these two tables based on "Case Id" and trying to visulaise the number of customers in Table 1 based on stages in Table 2. So, what I want and get for my "Table" visualisation is below: 

 

Stage              # Cases
Stage I2
Stage II1
Stage III1
(Blank)3

 

I am now trying to replace the (Blank) in the above visulisation to something else (like "Registered Only"). However, I cannot find a way to do that in Power BI and would be grateful if someone can help me on this please.

 

Thank you

1 ACCEPTED SOLUTION
PowerUserR
Solution Supplier
Solution Supplier

Hi,
I would recommend doing a full outer join and using this in power query to fill the blanks with what you desire.

Column = IF(ISBLANK([Column]),0,[Column)

 

View solution in original post

3 REPLIES 3
PowerUserR
Solution Supplier
Solution Supplier

Hi,
I would recommend doing a full outer join and using this in power query to fill the blanks with what you desire.

Column = IF(ISBLANK([Column]),0,[Column)

 

Greg_Deckler
Super User
Super User

@hamadani You will need a disconnected table (no relationships) containing Stage I, Stage II, Stage III and Registered Only as rows. You would then construct a measure to calculate accordingly.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler . Do you mean, I need to create a third table with Stage names only? Please note the "Registered Only" is not one of the current stage names in Table 2 and the blanks (which I want to replace its name to Registered Only in my visualisation), only appear after creating a relationship between Table 1 and 2 (which I require that relationship for other purposes too)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.