cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted
Community Support
Community Support

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

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

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

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





If this helps, Appreciate a KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




Highlighted
Super User IX
Super User IX

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

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
Frequent Visitor

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

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.

Highlighted
Continued Contributor
Continued Contributor

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

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

Highlighted
Community Support
Community Support

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

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

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Kudoed Authors