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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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