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
bleow
Frequent Visitor

Showing categories missing in the data as 0 in charts

I have the following line chart:

Screenshot 2021-06-16 115814.png

The x-axis is from the fact table. There are some (theoretical) categories in the dimension table that don't exist in this fact table.

 

The Show items with no value/calculate+0 tricks don't work because those categories are missing entirely from the data.

 

So I tried using the dimension table as the x-axis:

Screenshot 2021-06-16 115914.png

And while all the categories now show, this has created a new problem where the x-axis is not being recognised as a context filter.

 

There is already an active many-to-one relationship between the fact table and the dim table:

Screenshot 2021-06-16 120135.png

 

How do I resolve this issue?

 

Edit: feeling real silly now...I used the wrong table in the active many-to-one relationship (I have one fact table and another table that has been pivoted and transformed for event-in-progress data). I have changed it to the correct table and now it works as intended:

 

Screenshot 2021-06-16 115814 - Copy.png

 

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@bleow why the cross filter is set to both? 

 

If you share sample data and expected output, it will help to understand what you are trying to achieve?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

1 REPLY 1
parry2k
Super User
Super User

@bleow why the cross filter is set to both? 

 

If you share sample data and expected output, it will help to understand what you are trying to achieve?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.