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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ChrisR22
Helper III
Helper III

X-axis not changing with date slicer

Hello,

 

I have a chart that uses measures for count, and this is plotted over time. The time is from a calendar table. I have a between date slicer for this page, and for some reason my x axis is not being adjusted when I manipulate the slicer dates, only the data points shown change.

https://community.fabric.microsoft.com/t5/Desktop/Date-filter-does-not-update-x-axis-when-using-date...

 

This thread makes me think it is because I have a +0 piece added at the end of my measure so that zero values would show as such instead of null, which was advice I received from this thread:

https://community.fabric.microsoft.com/t5/Desktop/show-items-with-no-data-as-0-instead-of-blanks/m-p...

 

However, that first thread didn't really give advice on how to remedy my situation without removing the +0, which I need to have so that null values will show as 0. 

 

Currently my measure formula looks like this:

Completed Project Volume = CALCULATE(COUNT('DataTable'[Project ID]),USERELATIONSHIP('DataTable'[Completion Date],'Calendar'[Date]))+0
 
Unless someone has another way to make null values appear as 0, does anyone know of a workaround for the axis-slicer issue?
 
Thanks so much!
 
3 REPLIES 3
parry2k
Super User
Super User

@ChrisR22 exactly, that is a generic solution that should work in most of the cases. The point is to find out the first and last date, in your case it could be completely different but the logic is going to be the same.

 

It is very hard to tell any solution without looking at your model/measure and how you are visualizing it.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

ChrisR22
Helper III
Helper III

@parry2k thanks, however this example is a bit too generic for my use. I am not counting sales volume, which would be a sum of values in a 'Sales' column of a table. In my case, I am counting how many projects were completed (divided by 3 project types). Each of these projects would be counted based on count (Distinct) of Project IDs in cases where a completion date is present. Each project type would have its own 'FirstSale' and 'LastSale' so to speak. I have not been able to figure out how to work that generic example into a solution to my problem. Do you have any thoughts yourself of how you may approach this?

parry2k
Super User
Super User

@ChrisR22 there are many techniques on how you can show 0 for the selected period, check this blog post. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors