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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
PPalkowski
Helper II
Helper II

Months shown in graph

image.png

 

Why does my graph show months with no data?

I only want to see months I have data for, I don't want to add a filter, then I would have to adjust that filter every month I add data.

 
1 ACCEPTED SOLUTION

I'm good it's the +0 at the end of my sums

 

Thanks

 

View solution in original post

5 REPLIES 5
v-kelly-msft
Community Support
Community Support

Hi @PPalkowski ,

 

Create a calendar table using below dax expression:

 

Table 2 = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))

 

Then put the calendar date and value in the column chart.In the X-axis format ,choose categorical, and in the date filed,not select "show items with no data",and you will see:

Annotation 2020-03-31 095856.png

 

I made a sample .pbix which you can refer to,pls click here.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

 

I found out the problem, Since I use one of the measures I created in another table that only looks at totals, where I need to show zeros if nothing is there. My formula 

myMeasure = COUNTROWS(filter(Table,Table[MasterPlan]<>""))+0

so when I remove the "+0", I get the result I need. 

The only issue is now I have to create a duplicate set of measures without the "+0" suffix to satisfy some visuals.

Hi @PPalkowski ,

 

Can you provide more details?Better with your sample data to make the issue more clear.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

I'm good it's the +0 at the end of my sums

 

Thanks

 

Greg_Deckler
Super User
Super User

Probably has to do with the measure you are using or a relationship issue. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



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...

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors