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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
LBRo
New Member

How can I rename blanks in a graph that displays values for related and not related records?

Hello!

 

I have 2 tables related by ID. Table 1, has groups A, B, and C. Table 1 has IDs from 1 to 5, while Table 2 has IDs from 1 to 10. Not all Table 1 IDs are in Table 2. When I create a chart with values from Table 2 and the classification from Table 1, there's a bar that appears blank for the non-related IDs. How can I change the name on the X-axis to display A, B, C, and "Not in a group" 

LBRo_0-1705119826756.png

 

I would like to create this chart without excluding the blanks but renaming them.

LBRo_1-1705119904614.png

 

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @LBRo 

You can add a calculated column :

Group = LOOKUPVALUE(Groups[Group],[Id],[ID],"Others")
And use it on the graph
Ritaf1983_0-1705131350943.pngRitaf1983_1-1705131389308.png

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Yi

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
LBRo
New Member

Thanks! it worked out. 

Same idea but using the data model and COALESCE

 

lbendlin_0-1705185837890.png

 

Ritaf1983
Super User
Super User

Hi @LBRo 

You can add a calculated column :

Group = LOOKUPVALUE(Groups[Group],[Id],[ID],"Others")
And use it on the graph
Ritaf1983_0-1705131350943.pngRitaf1983_1-1705131389308.png

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Yi

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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