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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Google analytics User Dimension

im new to power query , 

I Am currently trying to load the User dimension from Google analitics to power bi  with the Date dimension ,

my problem is in the power query editor with the below query  the user column has 0 values for all rows

 

= Cube.Transform(#"123456",
{
{Cube.AddAndExpandDimensionColumn, "ga:date", {"ga:date"}, {"Date"}},

{Cube.AddMeasureColumn, "Users", "ga:users"}
})

but if i filter the date column i get a value in the user column like below 

    #"Elementos agregados" = Cube.Transform(#"123456",
        {
            {Cube.AddAndExpandDimensionColumn, "ga:date", {"ga:date"}, {"Date"}},
            {Cube.AddMeasureColumn, "Users", "ga:users"}
        }  
        
        ),
         #"Sorted Rows"= Table.Sort(#"Elementos agregados",{{"Date", Order.Descending}}),
          #"Filter Rows" = Table.SelectRows(#"Sorted Rows", each ([Date] = #date(2019, 9, 11)))
in
  #"Filter Rows"

granted i only get one value . for the specific date

 

How can i get the user count rows based on date 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

i think i figured it out there is no data from 2015 so it gives 0 

 

if i add the filter  below i get the column users populated and with this i can create the measures users 7 days etc 

= Table.SelectRows(#"Sorted Rows", each ([Date] >= #date(2016, 09, 01)))

View solution in original post

2 REPLIES 2
michaelbilling
Helper II
Helper II

@Anonymous Note, when using Users metric don't roll-up/sum over dates as this will give you wrong count of users. The Users mertric is a non-aggregatable..

 

If you need the User Dimension (as you write) so you can caltulate the correct Users metric you can take a look at https://scitylana.com/product

 

This service gives you the full dataset from GA (like Google Analytics 360) so you can count the distinct Users and even cross it with other data sets on, Client ID, Transaction ID, Geo Location, Time etc and filter any dimension while remaining correct counts.

And you don't have to worry about precision since data-sampling is removed too.

Anonymous
Not applicable

i think i figured it out there is no data from 2015 so it gives 0 

 

if i add the filter  below i get the column users populated and with this i can create the measures users 7 days etc 

= Table.SelectRows(#"Sorted Rows", each ([Date] >= #date(2016, 09, 01)))

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.