Dashboard building in Tableau – KPI with only the last month of data

When building a dashboard not always we want to show all the data for all the months or days available in our dataset.

Let’s say that we have a time series based in a table calculation that we are interested in showing, something like a running total, YTD total or difference from last month, however we only want to show the latest month.

We may start with something like: year, month, sum of sales, monthly difference in sales and running total.

last1

But our intention is to only show the latest month, in this case December 2013.

The first thing to do is to create calculated field using the ‘last’ function, as below:

last2

 

And then we place the recently created calculated field in the filters shelf. This way we will always have the last month of data, even if further months are added to our data source.

last3

Author:
Elnisa Marques
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2024 The Information Lab