简体   繁体   中英

Why is Data Studio not aggregating the data?

I am trying to visualize in Data Studio the number of user sessions with a certain landing page. I cannot use a filter because I don't want to filter the whole table. To this end, I created a calculated field which assigns a value of 1 if the page path is the one I want else 0...

case when landing_page = "xyz" then 1 else 0 end

However, when I select this as a metric in my table, it returns only 1's and 0's, ie, it's not summing up the yes values... Can you help please? Thanks

Make sure the metric aggregation is set to SUM and not COUNT DISTINCT.

Also, using that formula, you're basically creating a filter because the other landing pages will show 0 for user sessions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM