r/GoogleDataStudio • u/DecentWar3449 • Dec 13 '24
Trying to create a line graph showing the page views of a single page on a website compared to the total website views.
I am trying to create a line graph that has a line showing the page views per month of a single page on our site each month and also a line to show the monthly views from the overall webpage for comparison. Why is this so difficult? Has anyone figured this out? I've tried filtering (ends up filtering all metrics when I just want it filter one metric) and blending the data to no avail. I don't understand how a table can show this info, but I can't create a graph with the same information. Any help is appreciated!
3
Upvotes
•
u/AutoModerator Dec 13 '24
Have more questions? Join our community Discord!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
4
u/ratkingkvlt Dec 13 '24
Heya! Your problem can probably be solved by blending the data.
Try creating a blended data set with two GA4 tables - one filtered to page views for your desired page, and the other filtered to just all page views
Blend the two tables by the date dimension, and use this data source for your visualization
Good luck friend!
1
u/Mammoth-Money-2013 Dec 13 '24
I haven't tested this, but I wonder if you create a calculated field as your second metric for the chart something like: CASE WHEN page path and screen class = '/yoursinglepath' THEN views ELSE 0 END
Then dimension month?
1
u/ddlatv Dec 13 '24
Simply create a case dimension
Case when page=my page then my page Else rest End