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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Always show full X-Axis even when there is no data

 

bar chartsbar charts

 

Dear all,

 

I have two simple bar charts. the above one shows spensings, the one on the bottom shares. both are stacked column bar charts and have the same x- axis. this is why there is only one shown. In this example the time on the x-Axis shows data for the bottom chart from week 11 2020 to week 29 2020. for the column chart on the top there is only data available for some of the weeks in the choosen period.

Is there a way I can tell power Bi to always display the full period even if there is no data available so the user read it more easily and doesn't need an extra x axis on the top chart?

5 REPLIES 5
qqqqqwwwweeerrr
Solution Sage
Solution Sage

Hi @Anonymous 

 

Plase check out this video this might help you to h show all the value on axis if you dont have any value. Here is link: https://youtu.be/WqE2As9RlgA?si=7y7S2tu2m7pIck_P

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: www.youtube.com/@Howtosolveprobem

Regards

 

 

SarahHope
Helper II
Helper II

"Show Items with No Data" seems so simple, yet I can't find this option anywhere!  I'm using desktop version Version: 2.131.1203.0 64-bit (July 2024).   It's not under the x or y values for the stacked bar chart visual. 

Greg_Deckler
Community Champion
Community Champion

@Anonymous - You can often do this using something like:

 

Measure =

  VAR __Calc = <some calculation>

RETURN

  IF(ISBLANK(__Calc),0,__Calc)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
mahoneypat
Microsoft Employee
Microsoft Employee

You could enable Show Items with No Data for that visual, or you can just add "+0" to your measure (so nothing returns blank, and gets filtered out in the visual).

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Thank you I did not know about this option.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.