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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
sy898661
Helper V
Helper V

show all months on graph even with no data

Hi all!

 

I am trying to recreate an excel graph in PBI and am having some issues... 

Is it possible to have this graph in PBI:

2.PNG

 

look like this grpah in Excel:

1.PNG

 

like how it has the blank space were there is no data rather than just skipping to the next data-filled month?

 

I tried changing the x axis to continuous and manually seting the start and end date but that didnt work, and I also tried to add a date table and put 0 as the value for the non-data-filled months but that didnt work either.

 

If anyone has any ideas please let me know 🙂 thanks!!

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @sy898661 ,

You can try to put month hierarchy in the x-axis field and enable 'Show items with no data' option to achieve this:

show items with no data.png

 

Best Regards,
Yingjie Li

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

View solution in original post

12 REPLIES 12
v-yingjl
Community Support
Community Support

Hi @sy898661 ,

You can try to put month hierarchy in the x-axis field and enable 'Show items with no data' option to achieve this:

show items with no data.png

 

Best Regards,
Yingjie Li

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

Anonymous
Not applicable

You saved my life. Thanks a lot!

I tried this but, when I take calculated column

Calculated Column : Format(Date, "MMM")
then for this It does not show any data for Blank months.

 

Hi,

Sorry to dig this post up, but i have a similar issue and while your solution helped me display the months with 0 data inputs, it also disabled my set filter.

In my case I have data from the last couple of years, but only want to show the latest 12 months. Now I get everything before that AND all upcoming months of this year as well.

Is there a way to filter those again?

Thank you!

I also am experiencing this issue. I think it's a bug?

Hello @ksempai , thank you for reaching out to the Fabric Community Forum. Since the original post has been marked as "Solved" and is over four years old, we kindly ask that you create a new post Fabric Community Forums for your inquiries instead of replying to the existing one.  Our community is here to assist you, and following this approach will help ensure that your question is viewed by more people and answered more promptly.

 

If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.  Proud to be a Super User!

I have the same problem.

when I choose show items with no data, my 12 months filter doesn't work. Does anyone now how to fix it?

@v-yingjl I added in dummy data-lines where there was no data for the dates we needed spaces in and tried this and it worked!! thank you so much!!

Anonymous
Not applicable

Having to put a lot of zeros in the excel tables were so frustrating, now this saved my life, I am so relieved

amitchandak
Super User
Super User

@sy898661 , With the visible viusal, I doubt. But this how it can happen if you want a break in between.

 

1. Make the value for those months as blank, not 0. If(Max(Table[Month] in {"Apr20","May20"}, blank(),[measure])

2. Make the type as Categorical

 

If it does not resolve. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
lbendlin
Super User
Super User

I don't see what's wrong with the Power BI picture. It is a representation of your data with a high level of truthiness.

@lbendlin The two areas are separated in the excel graph because they are two different campaigns that happen to fall in the same year. My boss is looking for separation. I know it technically portrays the same information but its not what I am looking to do....

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.