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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors