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
Yoshimitsu411
Resolver I
Resolver I

Power BI Bar Chart with Zero Values

Hello All

 

I have the following data tables

 

DataTable.PNG

 

 

 

 

 

 

 

 

 

 

 

Calendar.PNG

 

But the result in the bar chart is like this.

 

BarChart.PNG

 

 

 

 

 

 

 

 

 

 

 

 

I have selected 'Show items with no data' on the X axis (categorical) but this doesn't work. 

 

I need to use the bar chart and only display Jan value as per the data table. The rest of the months need to show nothing.

 

Thank you for any assistance.

 

Yoshi

 

1 ACCEPTED SOLUTION

Thanks for your help with this.

 

I found that because there was another direct relationship present on my data table, it made the relationship between the calendar data table and the main data table inactive. It seems this is not allowed.

 

I have fixed the issue with the bar chart, but now I need to fix the issue with creating multiple relationships on the data table.

 

Thanks again for your help.

 

Yoshi

View solution in original post

4 REPLIES 4
Jimmy801
Community Champion
Community Champion

Hello @Yoshimitsu411 

 

to me it seems af if you didn't connect both tables. So you could check the relationship between both tables.

 

BR

 

Jimmy

Both tables are connected. The month column from the Calendar table with the month column from the other table. The axis is showing this correctly.

It should only show one bar in the bar chart for January.

Thank you for your help.

Hello @Yoshimitsu411 

 

but with what is shown in the Axis you are not able to determine wheter is connected or not. Because exactly this behavior happens when there is no connection between the tables. 

Could you post a screenshot of the relationship editor like so

image.png

 

Jimmy

Thanks for your help with this.

 

I found that because there was another direct relationship present on my data table, it made the relationship between the calendar data table and the main data table inactive. It seems this is not allowed.

 

I have fixed the issue with the bar chart, but now I need to fix the issue with creating multiple relationships on the data table.

 

Thanks again for your help.

 

Yoshi

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.

Top Solution Authors
Top Kudoed Authors