Video | Tableau | Data visualisation | Analytics

Embed Metrics: New in Tableau 2021.4

Tableau 2021.4 finally lets you embed metrics, not just dashboards, and it's as simple as pasting an embed code into your portal.

Part ofWhat's new in Tableau 2021.4
  • Tableau 2021.4 lets you embed individual metrics, not just dashboards, via the 'Share metric' option which provides an embed code
  • The embed code has two parts: an asset tag (e.g. tableau-metric) pointing to the metric's location and ID, and a JavaScript line using Tableau's metric API to render it
  • You can find the metric ID in the URL and use the Tableau Server REST API to dynamically load metrics rather than copying embed codes manually
  • Embedded metrics render inside an iframe using React rather than VizQL, meaning they build interactive elements rather than static images
  • Single sign-on makes embedding straightforward as users are already authenticated, so you can drop the embed code into most portals that accept HTML
  • When embedding multiple metrics you only need the JavaScript API line once; additional metrics just need their asset tag

Tableau Release notes: With 2021.4, you can now embed Metrics into your analytical apps, corporate portals or web pages to provide a more personalised experience for different people and teams.

Follow me on Twitter: https://twitter.com/TableauTim My recording gear & what’s on my desk. https://kit.co/TableauTim/desk-setup My website: https://www.tableautim.com/ My place of work: https://www.theinformationlab.co.uk/