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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors