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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ABill234
Helper I
Helper I

Set date filter from and to in a report

Hi All,

 

Wondering if someone can help, how to I set a to and from date as a visualisation? 

 

I know you can have one selected date on a slicer but not from say 1/10/2020 - 1/11/2020

 

 

Thanks in advance

1 ACCEPTED SOLUTION

1- Select the date field in table

2- goto Column Tools ribbon and see if the data type is date

3- If it is not date change it to date

4- check the slicer and select between from drop down

 

FarhanAhmed_0-1604666447324.png

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




View solution in original post

11 REPLIES 11
FarhanAhmed
Community Champion
Community Champion

you can do it by putting date in Slicer visual and then you have option to select Between or any other criteria you wanted.

 

FarhanAhmed_0-1604660420310.png

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Hi @FarhanAhmed How do I get this?

Under Visualization pane, you can see this visual

FarhanAhmed_0-1604663677722.png







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Screenshot 2020-11-06 at 12.05.11 PM.png

 

This is a slicer on mine? and brings down the dates in a list or dropdown not slider? How do I get it to be a slider like your screenshot in previous message? @FarhanAhmed 

Your column should have data type as "DATE",

Once you select the slicer Visual and put that column in the Slicer Visual. then you need to click below

 

FarhanAhmed_0-1604665210438.png

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




@FarhanAhmed am i doing something wrong? 

 

Screenshot 2020-11-06 at 12.34.22 PM.png

1- Select the date field in table

2- goto Column Tools ribbon and see if the data type is date

3- If it is not date change it to date

4- check the slicer and select between from drop down

 

FarhanAhmed_0-1604666447324.png

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




thank you! @FarhanAhmed 

amitchandak
Super User
Super User

@ABill234 , what I got is you want outside the range

if the slicer table is an independent table

measure =
var _max =maxx(allselected(date),date[date])
var _min =minx(allselected(date),date[date])

return
calculate(Sum(TABLE[DATE_FIELD_2] ), filter(Table, Table[Date] >=_max && Table[Date] <=_min))

 

if joined with table
measure =
var _max =maxx(allselected(date),date[date])
var _min =minx(allselected(date),date[date])

return
calculate(Sum(TABLE[DATE_FIELD_2] ), filter(all(date), date[Date] >=_max && date[Date] <=_min))

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak Thanks for this ! where do I put the return? / measure? 

Sorry im new to this! can you send screenshot if you wouldnt mind?

 

 

@ABill234 , not very clear. if you wnat to know how to create a measure , refer

https://www.youtube.com/watch?v=TQhN1xfV1fo

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors