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
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
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.