I have been reflecting on my dashboards performance...
You may have noticed that the Ecobici dashboard I presented on my previous couple of posts takes a while to refresh every time you filter the views. This exercise is using a considerable number of rows and there are some optimization tricks that I should have then taken into consideation.
To begin with, it would have helped to calculate some fields in the source file instead of making the calculations in Tableau:
- The distance calculation is a clear example and I should have done it just as I did with the trip time.
- In the end, it was not a good idea to merge the date and time values into a single column and rely on Tableau's functions to calculate YEAR, WEEKDAY, DAY, HOUR, etc. It is much more efficient to have distinct columns for the measures being used.
There are other factors to consider for responsive dashboards and I've found a couple of nice articles that may be helpful to go deeper in this topic:
For now, I only added the date and distance calculations on the source file and this had a significant impact on the performance: