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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
dats
Resolver I
Resolver I

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
Super User
Super User

Hi @dats 

 

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
Super User
Super User

@dats - 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!:
Power BI Cookbook Third Edition (Color)

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


Thank you I did not know about this option.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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