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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors