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
Anonymous
Not applicable

Pull Data from table1 if date is = today or more and from table2 if the date < today

Hello, I want to use the Data from one table (Table1) if the Date is equal to Today or in the future and use Data from another table (Table2) if the Date is less than Today date.

Please help - Thanks

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

If the data is from a SQL database, you can send a SQL query. The general solution could be filtering them in the Query Editor. 

Please refer to the snapshot below.

= Table.SelectRows(#"Changed Type", each [Column1] >= Date.From(DateTime.LocalNow()))

Pull-Data-from-table1-if-date-is-today-or-more-and-from-table2-if-the-date-today

 

 

Best Regards,

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

View solution in original post

4 REPLIES 4
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

If the data is from a SQL database, you can send a SQL query. The general solution could be filtering them in the Query Editor. 

Please refer to the snapshot below.

= Table.SelectRows(#"Changed Type", each [Column1] >= Date.From(DateTime.LocalNow()))

Pull-Data-from-table1-if-date-is-today-or-more-and-from-table2-if-the-date-today

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

In fact my data are coming from 2 differents .csv files one for Table1 and the 2nd for Table2

Should I use the same filtering principle.

Please, I would need a little more detail as I am quite new in Power BI world

Thanks !!

Hi @Anonymous ,

 

Yes, you only need to apply these steps once. You will always get the desired data when you refresh the report.

Can you see the image in my last post, which contains details?

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Yes - I can see the image

 

Many Thanks  you for your help!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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