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
nirrobi
Helper V
Helper V

get data - load data base on date filter

Hi,

 

I have HUGE table that I load to my model (and workproperly).

I want to add line in my sql to load only data the date is greater then 31/12/12

 

I succeed to do it in excel query but get error in power BI.

 

This what I tried:

TableName.CulomnName>{ts '2012-12-31 00:00:00'}

 

please your help

1 ACCEPTED SOLUTION
mllopis
Community Admin
Community Admin

Hi,

 

When connecting to MySQL, you can provide a custom SQL statement where you can provide this Date filter.

 

Alternatively, you could connect to MySQL without a SQL statement, which will let you navigate to the table in question. Once you select the table, click Edit and this will bring you into the Query Editor experience. You can define filters based on Date columns within the Query Editor without the need to learn or write SQl statements. These filters can be static dates or dynamic (i.e. This Week, This Month, Year To Date, etc.).

 

Thanks,
M.

View solution in original post

4 REPLIES 4
mllopis
Community Admin
Community Admin

Hi,

 

When connecting to MySQL, you can provide a custom SQL statement where you can provide this Date filter.

 

Alternatively, you could connect to MySQL without a SQL statement, which will let you navigate to the table in question. Once you select the table, click Edit and this will bring you into the Query Editor experience. You can define filters based on Date columns within the Query Editor without the need to learn or write SQl statements. These filters can be static dates or dynamic (i.e. This Week, This Month, Year To Date, etc.).

 

Thanks,
M.

Hello There,

 

Need your help.

When I'm loading the MySQL table in Power BI, I only have 'Load' or 'Transform data' options and I do not see edit. I want to pull the data only from last month as this MySQL table consists of many years of data.

 

In addition, when I load the above data, the Power BI does not recognize the date and it is showing mm/dd/yyyy whereas, my laptop date format is dd/mm/yyyy. I can't change my laptop date format since it is linked to many other systems.

 

Please advise,

Thank you

Hi. 

 

What is the syntax for filter data from year 2013 and after?

Thanks

anyone?

 

please

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.