IAmSalvaMartini

Untitled

Oct 21st, 2021
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. Create a Datastudio report
  2. Click on compose new query and then copy and paste the following query into the BigQuery Query editor.
  3.  
  4. SELECT
  5. date, SUM(cumulative_confirmed) AS country_cases,
  6. SUM(cumulative_deceased) AS country_deaths
  7. FROM
  8. `bigquery-public-data.covid19_open_data.covid19_open_data`
  9. WHERE
  10. date BETWEEN '2020-03-15'
  11. AND '2020-04-30'
  12. AND country_name='United States of America'
  13. GROUP BY date
  14.  
  15.  
  16. Click on EXPLORE DATA > Explore with Data Studio.
  17.  
  18. Authorize Data Studio to access BigQuery.
  19.  
  20.  
  21. If may fail to create a report for the first-time login of Data Studio.
  22. Click + Blank Report and accept the Terms of Service.
  23. Then Go back to the BigQuery page and click Explore with Data Studio again.
  24. In the new Data Studio report, select Add a chart > Time-series Chart.
  25.  
  26. Add country_cases and country_deaths to the Metric field.
  27.  
  28. Click on Save to commit the change.
  29.  
Advertisement
Add Comment
Please, Sign In to add comment