Reply
Kkaushik
Frequent Visitor
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

Brilliant! It worked. Thanks

Vijay_A_Verma
Super User
Super User

Syndicated - Outbound

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. 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)