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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

how to add date range filter

Hi,

 

i have table has start date/time and end date/time filed. now i want to give date range filter to user so user can select start date and end date based on that data get filter.

 

pls guide how to add date range filter.

Thx

1 ACCEPTED SOLUTION

Hi,

 

I answered a question similar to this yesterday.  You may download my PBI file from here.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

 

Can the time stamps be removed or do you need them?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

time stamp can be removed, i  just need to filter based on date.

Hi,

 

I answered a question similar to this yesterday.  You may download my PBI file from here.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

HI @Anonymous,

 

Power bi not support direct operation on date range which define by two columns.

 

You need to create a calculated table to store expand detail date and link to original table, then you simply use new data column as source of slicer to filter on date range.

 

Sample table formula:

Expand date table =
VAR _calendar =
    CALENDAR ( MIN ( Table[start] ), MAX ( Table[end] ) )
RETURN
    SELECTCOLUMNS (
        FILTER (
            CROSSJOIN ( Table, _calendar ),
            Table[start] <= [Date]
                && Table[end] >= [Date]
        ),
        "id", Table[unique ID],
        "Date", [Date]
    )

 

Build relationship based on 'id' column, then use new date column to create slicer to filter on original table.

 

Regards,

Xiaoxin Sheng

Hi @Anonymous ,

 

I see your post when I searched in the forum and your answer may help me.

I want to apply filters from several columns(Project+Version+CyleName).

Please see my shared excel. https://1drv.ms/x/s!AsM9bO8zGUN6qnGmCaFm-w7WgYYL

 

add here is my original post.

https://community.powerbi.com/t5/Desktop/How-to-create-several-filters-which-should-applyed-several/m-p/652703/highlight/false#M313068

 

Could you please help to have a look and give your suggestion? Thank you very much!

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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