5 Jan 2021

Messi Goal Tracker dashboard in Google Data Studio

  #73: Messi Goal Tracker dashboard in Google Data Studio

 
Update 11/9/2023
 
Begin Update
 
Because of Messi's transfer to Inter Miami I had to update my Messi-goal-tracker GoogleDataStudio-report to include the goals that he made for his new club.
And I included another page to see easily the #goals he made per club and competition.






End Update 11/9/2023
 
  
Update 3/10/2021:
 
Begin Update
Now Messi moved to Paris Saint-Germain (PSG), I had to change my Messi-goal-tracker GoogleDataStudio-report a bit, to reflect e.g. if a goal he scored in the Champions League was a goal for FC Barcelona or for PSG.

I below screenshot you can see how the new dashboard looks like:




I leave it to you to find the differences/improvements with the previous version of the dashboard (see FIG.1 below) ;) But screenshot below, which has a filter on opponent Manchester City, against which Messi made hist 1st goal for PSG this week, could help you.



End Update
 
When Messi made on 22/12/2020 his 644-th goal for FC Barcelona, he broke the 46 year old record '# goals made for one club' of Pele (who made 643 goals for Santos). See e.g.:
https://www.espn.in/football/barcelona/story/4215713/barcelonas-messi-overtakes-peles-scoring-record-with-644-goals-for-the-club

or (in Spanish, with a chart with a breakdown of the 644 goals by competiton):
https://www.mundodeportivo.com/futbol/fc-barcelona/20201223/491248765482/barca-valladolid.html

This new record of Messi inspired me to make a new Messi-dashboard.
The previous Messi-dashboards I made, for his record '# goals made in one year' 
(91 goals in 2012), see posts:

https://worktimesheet2014.blogspot.com/2015/08/dashboard-for-messis-worldrecord-of-91.html 

https://worktimesheet2014.blogspot.com/2016/12/powerbi-dashboard-for-messis.html

https://worktimesheet2014.blogspot.com/2020/01/google-data-studio-dashboard-for-messi.html

were 'static snapshots'.  This time I wanted to make a 'live-dashboard', so one that is automatically updated after each match of Messi in which he scored. So that when Messi retires in Barcelona (or leaves to another club, which might happen at the end of this season (2020-2021)..), this dashboard shows his final score (so which will probably be more than the current 644 goals).
In FIG.1 you can see my dashboard, and for the dashboard in Google Data Studio, see: https://datastudio.google.com/s/lZaGsxWsomc
And at the bottom of this post there is also an embedded version of the dashboard.


FIG.1: Messi (live) dashboard, showing his record '644-goals for one club' (Barca).


Datasource

I found this Power BI Messi-dashboard of Microsoft Data Platform MVP Tristan Malherbe:
https://community.powerbi.com/t5/Data-Stories-Gallery/Incredible-Lionel-Messi/td-p/82225 that uses this (live) datasource: https://messi.starplayerstats.com/en ,
which is made by Dutch sports journalist Ramon Min.
So I decided to use this datasource as well. 
I used Google Sheets to import this data, using this function:

=IMPORTHTML("https://messi.starplayerstats.com/en/goals/0/0/all/0/0/0/t/all/all/0/0/1","table",1)

see also FIG.2



https://docs.google.com/spreadsheets/d/13Z81oKYbcyXSiETIEd_HT-L7_pzJfL7YjKC_ISyrhD8/edit?usp=sharing

FIG.2: G-Sheets with import of data of Messi-stats website

For this spreadsheet, the settings for (re)calculation are 'on change and after every hour', so once R. Min has updated his website (which he does after every Messi-match), in max. 1 hour my G-Sheet is also updated.
See also:
https://webapps.stackexchange.com/questions/6776/what-are-the-refresh-characteristics-of-the-google-spreadsheet-import-functions

Dashboard

I made the dashboard in Google Data Studio (GDS). To make the source-data better for reporting, I created some extra fields, e.g. 'Competition', that for international competitions (so where Messi plays for Argentina) aggregates all goals for one 'competition-type'. So instead of having the goals of Messi in World Cup seperate by year/edition (as the datasource has), using field 'Competition' in my dashboard you get the sum of all World Cup goals that Messi made.
For the datamodel of the dashboard and the formula used for field 'Competiton', see FIG.3-4

FIG.2: datamodel of dashboard



FIG.3: formula for field 'Competition' of datamodel 

I wanted to keep my dashboard simple, so with just the basic data: 
- dimensions: date, competition (-> team for which Messi played), opponent
- fact: #goals
So more detailed (dimension-)data of how Messi scored (penalti, left-foot etc.) I left out of the dashboard. 

I chose to set report-setting 'enable viewer filters in report link' to 'true', so that it is possible to make a snapshot of the dashboard for a certain filter-value, broke a record, see e.g. FIG.4.



FIG.4: Messi's 2012-record: '#goals in 1 year', so with report-filter: Year = 2012
https://datastudio.google.com/s/ji-MWIO5TuI
or:
https://datastudio.google.com/u/1/reporting/9d51c83b-11ea-44eb-b4dd-20a8ca54fd8a/page/JS6uB?params=%7B%22df7%22:%22include%25EE%2580%25801%25EE%2580%2580IN%25EE%2580%25802012%22%7D

For the bar-charts, I set the colors for Messi's teams (Barca and Argentina) according to the shirt-colors of these teams, see e.g.: https://www.schemecolor.com/fc-barcelona.php

The data in the charts are sorted by metric ('Goal#', in descending order), but you can change this in e.g. sort by dimension 'Year'.

The dashboard is interactive (e.g. it has filters and all charts are connected so that if you filter in one of them, the others get filtered as well), so you can explore the data. For some of my own explorations, see below figures.



FIG.5: matches in Messi's top-year 2012 in which he made 3 or more goals
NB: note that Messi made against Bayer Leverkussen 5 goals, the first player ever to do this in a Champions League match,  see: https://youtu.be/HtMU0x1L4EU



FIG.6: Goals made in Champions League



FIG.7: Goals made against Real Madrid


To celebrate this new record of Messi, his sponser Budweiser sent to the 160 goalkeepers of the teams against which Messi scored his 644 goals, special 'Messi-beer', see e.g:

https://www.givemesport.com/1631804-lionel-messi-which-goalkeepers-got-the-644-bottles-of-budweiser-beer

https://www.thedrum.com/news/2020/12/30/budweiser-bestows-beer-upon-each-the-160-goal-keepers-lionel-messi-scored#:~:text=Today%2C%20we're%20talking%20about,these%20goals%20%E2%80%93%20some%20120%20keepers.

If you liked this post and want to buy me a Budweiser, click on the PayPal-Donate button on the top-right of this post ;)

Cheers and best wishes for 2021.


References

https://messi.com/en/estadisticas-barcelona/

https://www.transfermarkt.com/lionel-messi/alletore/spieler/28003

https://www.theguardian.com/football/2021/jan/01/pele-revolutionary-status-must-survive-numbers-game-against-lionel-messi-santos

https://medium.com/totalfootball/why-pele-remains-the-greatest-footballer-of-all-time-1fc00bea0120

https://www.90min.com/posts/3062276-forget-pele-maradona-messi-and-ronaldo-johan-cruyff-has-to-be-greatest-of-all-time


Downloads

PDF of dashboard


Embedded Dashboard

<iframe width="600" height="450" src="https://datastudio.google.com/embed/reporting/9d51c83b-11ea-44eb-b4dd-20a8ca54fd8a/page/JS6uB" frameborder="0" style="border:0" allowfullscreen></iframe>





1 comment:

rstrainings said...

I like your post very much. It is very much useful for my research. I hope you to share more info about this. Keep posting.