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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to pull data from a table from spesific date?

Hi all,

 

I use ODBC to connect to a table.

The table contains many rows (more then I need).

How can I get data from the table after a specific date without pulling all table before?

 

Thanks,

4 REPLIES 4
dax
Community Support
Community Support

Hi @Anonymous , 

You could try to use M code like below to filter data

= Table.SelectRows(#"Changed Type", each [Column1] <=#date(2020,5,19))

 

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

Use can use Query Folding for that.

After import the data, create a parameter or/and filter the data. So the engine will make the query for this range of data instead of all data.

 

https://docs.microsoft.com/en-us/power-bi/guidance/power-query-folding

https://docs.microsoft.com/en-us/power-query/power-query-folding



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

Hi @camargos88 ,

 

I tried to use folding as wrote in the links, but I have an error that I didn't connect to the relevant table (I'm connected to DSN).

It looks like I miss something.

Can you show some examples above the links?

@Anonymous ,

 

What is the error ? Also the source ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors