how create table / scorecard with last Date value in DataStudio?

蓝咒 提交于 2020-06-28 03:57:56

问题


I have this report, but I am not able to create scorecard or table with with latest date value. Before it was working in Scorecard with MAX(date) query, but I got info that "Scorecard not working this way anymore after last update", but seems that also in table not working. When you check the screenshots there is showing only type (Text) and not date type as expected. Any idea how to fix this please ?

FYI: now is showing in report last update from May 28, even there is also data May 29, but it sorted now according SUM(Confirmed) Values , unable to sort by date

Here is my report and some screenshots

https://datastudio.google.com/reporting/6e242aa8-9cda-47c4-8ef5-e52a7148d9bd


回答1:


Adapted from an Earlier Answer, using an Editable Copy of the Google Data Studio Report above and a GIF to elaborate (feel free to have a look through and copy and paste the Table created below, in your report):

1) Data Tab

  • Chart Type: Table
  • Dimension: date
  • Sort: date in Descending order
  • Rows per page: 1

2) Style Tab

  • Show Header: Deselect
  • Row Numbers: Deselect
  • Show Pagination: Deselect
  • Table Labels Font Size: As required (e.g. 24px)
  • Cell Border Colour: Transparent

3) Text Box & Grouping

  • Add a Text Box stating Max Date if required
  • Precision Movement: Use Shift + Movement keys to finely place the components exactly where required.
  • Groups: The Text Box and Table can be grouped so that it's treated as a single component, making it easier to move both components simultaneously




回答2:


There is an hack if you want to show the last date value. You can create a table with the metric "New Case World Wide", sort the table by date and only show one value. Then you can edit the style settings of the table. You can remove the header and the footer of the table and you will have only the value you need.

I also had a difficulty with this feature. I didn't found anything other than this solution. There is nothing related to this in the documentation (link at the end of the post) so I suppose that it is not supported by Google Data Studio currently.

Documentation about scorecards: https://support.google.com/datastudio/answer/7193479?hl=en

Documentation about calculated fields: https://support.google.com/datastudio/answer/6299685?hl=en



来源:https://stackoverflow.com/questions/62102694/how-create-table-scorecard-with-last-date-value-in-datastudio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!