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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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