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
ShrimpCreole
Helper I
Helper I

Adding Query Name as Column In Power Query

How / where in Power Query advanced editor would I add the name of the query name?   B

 

let
Source = GoogleAnalytics.Accounts(),
#"250012481" = Source{[Id="250012481"]}[Data],
#"UA-195155603-5" = #"250012481"{[Id="UA-195155603-5"]}[Data],
#"268254880" = #"UA-195155603-5"{[Id="268254880"]}[Data],
#"Added Items" = Cube.Transform(#"268254880",
{
{Cube.AddAndExpandDimensionColumn, "ga:channelGrouping", {"ga:channelGrouping"}, {"Default Channel Grouping"}},
{Cube.AddAndExpandDimensionColumn, "ga:deviceCategory", {"ga:deviceCategory"}, {"Device Category"}},
{Cube.AddAndExpandDimensionColumn, "ga:date", {"ga:date"}, {"Date"}},
{Cube.AddMeasureColumn, "Goal Completions", "ga:goalCompletionsAll"},
{Cube.AddAndExpandDimensionColumn, "ga:source", {"ga:source"}, {"Source"}},
{Cube.AddAndExpandDimensionColumn, "ga:sourceMedium", {"ga:sourceMedium"}, {"Source / Medium"}},
{Cube.AddAndExpandDimensionColumn, "ga:sessionCount", {"ga:sessionCount"}, {"Count of Sessions"}},
{Cube.AddAndExpandDimensionColumn, "ga:userType", {"ga:userType"}, {"User Type"}},
{Cube.AddMeasureColumn, "Pages / Session", "ga:pageviewsPerSession"},
{Cube.AddMeasureColumn, "Pageviews", "ga:pageviews"},
{Cube.AddMeasureColumn, "Bounce Rate", "ga:bounceRate"},
{Cube.AddMeasureColumn, "Bounces", "ga:bounces"},
{Cube.AddMeasureColumn, "Hits", "ga:hits"},
{Cube.AddMeasureColumn, "Session Duration", "ga:sessionDuration"},
{Cube.AddMeasureColumn, "Sessions", "ga:sessions"},
{Cube.AddMeasureColumn, "New Users", "ga:newUsers"},
{Cube.AddMeasureColumn, "Users", "ga:users"}
})
in
#"Added Items"

1 ACCEPTED SOLUTION
sevenhills
Super User
Super User

Not sure your needs, A little long way, but you can get it.
Check this link

https://radacad.com/get-list-of-queries-in-power-bi

 

View solution in original post

1 REPLY 1
sevenhills
Super User
Super User

Not sure your needs, A little long way, but you can get it.
Check this link

https://radacad.com/get-list-of-queries-in-power-bi

 

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.