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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Jaromir_Vacek
New Member

how to optimally use date and time filtration in power BI

Hi all,

Could anybody help me to solve my problem in Power BI? I'm the Power Bi begginer and I'm trying to find the best way how to filter the data. I have few tables with their own SQL queries(each has a timeframe) and I would like to have this time frame like a user setting parameter so the user would be able to select the data from whatever timeframe needed.

Thank you

Jaromir

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jaromir_Vacek 

 

If your tables are all in DirectQuery mode, you can try the Dynamic M query parameters in Power BI Desktop. This is mostly close to what you want. With this feature, report users can use a slicer to switch values and pass the selected value to a binded M query parameter which is used in SQL queries to get data from data source tables. There are many articles and blogs introducing this feature, you can search them to learn more about it. 

 

If your tables are in Import mode, you will not be able to let report users affect the data which is brought into Power BI. You have to import all necessary data into Power BI. Then use filters and slicers in reports to filter the data to be displayed. You can hide and block some filters that you don't want users to use. To learn more about slicers and filters in Power BI, you can go to the following links:

Slicers in Power BI - Power BI | Microsoft Learn

Types of filters in Power BI reports - Power BI | Microsoft Learn

 

Hope this would be helpful. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

2 REPLIES 2
Jaromir_Vacek
New Member

Thank you for your help. I will investigate the  Dynamic M query parameters in Power BI Desktop it's my case

Anonymous
Not applicable

Hi @Jaromir_Vacek 

 

If your tables are all in DirectQuery mode, you can try the Dynamic M query parameters in Power BI Desktop. This is mostly close to what you want. With this feature, report users can use a slicer to switch values and pass the selected value to a binded M query parameter which is used in SQL queries to get data from data source tables. There are many articles and blogs introducing this feature, you can search them to learn more about it. 

 

If your tables are in Import mode, you will not be able to let report users affect the data which is brought into Power BI. You have to import all necessary data into Power BI. Then use filters and slicers in reports to filter the data to be displayed. You can hide and block some filters that you don't want users to use. To learn more about slicers and filters in Power BI, you can go to the following links:

Slicers in Power BI - Power BI | Microsoft Learn

Types of filters in Power BI reports - Power BI | Microsoft Learn

 

Hope this would be helpful. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors