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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
dave_schultz
Regular Visitor

Using date

Hi there,

 

I would like to subtract two days from the most recent PRICE_DT field, but i'm getting an error. Here's my code:

 

let
Source = #"Curated RP_IOSAF_TRANSACTIONS",
#"Extracted Date" = [PRICE_DT].From(Source),
#"Converted to Table" = #table(1, {{#"Extracted Date"}}),
#"Added Custom1" = Table.AddColumn(#"Converted to Table", "Custom.1", each Date.AddDays([Column1],-2)),
just_the_value = #"Added Custom1"{0}[Custom.1]
in
just_the_value

 

I'm getting this error: "Expression.Error: The name 'PRICE_DT.From" wasn't recognized. Make sure it's spelled correctly. 

1 ACCEPTED SOLUTION
dave_schultz
Regular Visitor

Hi @Anonymous -

 

Thanks for responding. i ended up getting some help internally at my firm. I ended up duplicating the original query removing all data except for the date i wanted. then i removed duplicate dates and sorted on newest to oldest. Then i added an index and had my other query reference the date that i wanted in my query. It worked! 

 

Thanks again! 

 

David

View solution in original post

3 REPLIES 3
dave_schultz
Regular Visitor

Hi @Anonymous -

 

Thanks for responding. i ended up getting some help internally at my firm. I ended up duplicating the original query removing all data except for the date i wanted. then i removed duplicate dates and sorted on newest to oldest. Then i added an index and had my other query reference the date that i wanted in my query. It worked! 

 

Thanks again! 

 

David

Anonymous
Not applicable

Hi @dave_schultz ,

It's glad to hear that your problem has been resolved. And thanks for sharing your solution here. Thank you.

Best Regards

Anonymous
Not applicable

Hi @dave_schultz ,

According to the error message, it seems the error occur at the second step #"Extracted Date"... Could you please provide some sample data in your table and the screenshot with error message in Power Query Editor? Thank you.

Best Regards

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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