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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Kkaushik
Frequent Visitor

Power Query Date Filters in Excel

Hello, I am very new to PQ. I have imported huge data from SalesForce. I want to apply 'from and to' date filters on 'transactions date' column but I want users to input the 'from' (and 'to') dates in two separate cells in Excel to refresh my query. I imported the start date as a named range 'FromYTD' and saved as connection only. Then applied to the column as below.

Kkaushik_2-1653980914824.png

 

 

Kkaushik_0-1653980596034.png

Both the transactions column and From YTD is formatted as Date.

The error message I am getting is below. Please help. Thanks

Kkaushik_1-1653980646492.png

 

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

In your formula, make it FromYTD{0} in place pf FromYTD. This will make it refer to first value of FromYTD list.

OR

Don't change formula, in your FromYTD list, right click on List column and drill down. This will make it a single value and you query will work correctly. 

View solution in original post

2 REPLIES 2
Kkaushik
Frequent Visitor

Brilliant! It worked. Thanks

Vijay_A_Verma
Super User
Super User

In your formula, make it FromYTD{0} in place pf FromYTD. This will make it refer to first value of FromYTD list.

OR

Don't change formula, in your FromYTD list, right click on List column and drill down. This will make it a single value and you query will work correctly. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Kudoed Authors