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
netschool
Frequent Visitor

Can anyone help me limit the range of a slicer or the dates of a bar chart?

I have a dynamyc slicer with a series of dates that expands over three months (without hours). And with that data I created a dynamic bar chart and a slicer. 

netschool_1-1596641714837.png

And so far it's ok, but when I select a range of three or less dates on the slicer the chart looks like this.

netschool_2-1596641786390.png

It add hours in between the dates and I don't want that. So I was wondering is someone may know how to either delete the hours in between the values of the chart or how to only select an range of five dates in any part of the slicer?

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @netschool 

Change the type for X-axis from "Continuous" to "Categorical" 

5.JPG

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

hi  @netschool 

Change the type for X-axis from "Continuous" to "Categorical" 

5.JPG

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mhossain
Solution Sage
Solution Sage

@netschool 

 

Seems it should work as per solution provided by others, it's strange. Can you try once to get rid of time from your date field in powerquery itself and then see if it works.

amitchandak
Super User
Super User

@netschool , if you data type is datetime, change it to date and check

Pragati11
Super User
Super User

Hi @netschool ,

 

What the date format for your DATE column which is used on x-axis on the chart? Is it dd/mm/yyyy hh:mm:ss ???

If the format is as above, then try changing format to dd/mm/yyyy.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

The data type of my column is simple "Date" and this is the format that I was using (dddd, dd mmmmm yyyy). I changed it as you said but sadly it still shows the hours in between.

 

Thanks though.

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.