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! Request 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
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