cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Google Analytics Filter by Year

I am connected to a Google Analytics property and bring in Year, YearMonth, and Users. I am trying to filter by year since GA will not return 10+ years of data. The filter does nothing. It appears to load, but does not return new results or even filter the dataset within Power BI.ga filter exmaple.PNG

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Google Analytics Filter by Year

Hi @rutgerboll 

Check the data type of column "year",

If it is of type number, please change the "2018" , "2019", to 2018, 2019.

 

Please look at my test below:

6.png7.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Frequent Visitor

Re: Google Analytics Filter by Year

Thanks for the suggetion @v-juanli-msft . That does not fix this issue as modifying the datatype interferes with the way Power BI modifise google analytics API calls. If I filter on a time dimension it can/should send a query to GA with the time filter applied. That is not happening with year. 

Highlighted
Community Support
Community Support

Re: Google Analytics Filter by Year

Hi @rutgerboll 

My solution doesn't need you to change the data type of your data model, just modify your string code below

change "2018" and "2019" to 2018,2019

2.png

 

Did you try this and it still not fix?

 

Best Regards
Maggie

Highlighted
Community Support
Community Support

Re: Google Analytics Filter by Year

Hi @rutgerboll 

Is this problem sloved? 

If it is sloved, could you kindly accept it as a solution to close this case?

If not, please let me know.

 

Best Regards

Maggie

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors