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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.