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

 

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

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.