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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.