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
Finalyst96
New Member

How to edit a premade item in a power query step?

I've inherited this power query and my predecessor has 'items' in the formula that are also created by a formula. When I hover over these items I can see the formula but I don't know how to edit the formula. (see screenshot below)

 

Is this possible? Also how are these created?

 

Finalyst96_0-1685381003905.png

 

1 ACCEPTED SOLUTION
collinsg
Super User
Super User

Good day Finalyst96,

The "items" you see are other queries. Let's say you make a query called DateToday which returns todays date.

let
Source = Date.From( DateTime.LocalNow() )
in
Source

Then you make another query called DatePlusSevenDays which references DateToday...

let
Source = Date.AddDays( DateToday, 7 )
in
Source

 When you hover over DateToday in this second query it will show the code of DateToday. You can see the queries in the Queries panel at the left hand side of the query editor.

 

collinsg_0-1685392828806.png

Hope this helps.

View solution in original post

1 REPLY 1
collinsg
Super User
Super User

Good day Finalyst96,

The "items" you see are other queries. Let's say you make a query called DateToday which returns todays date.

let
Source = Date.From( DateTime.LocalNow() )
in
Source

Then you make another query called DatePlusSevenDays which references DateToday...

let
Source = Date.AddDays( DateToday, 7 )
in
Source

 When you hover over DateToday in this second query it will show the code of DateToday. You can see the queries in the Queries panel at the left hand side of the query editor.

 

collinsg_0-1685392828806.png

Hope this helps.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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