Frankly, there is no problem with what Tableau Server is doing, the problem lies in the mindset of the developers: Making improvements is a worthy reason alone! Personal opinion aside, there is no fix for this as the logic is set in the Server and the implementation makes sense.
If you query the repository for Historical Events, you can see the number of Views for a Workbook, irrespective of whether views within the Workbook have been deleted / updated, etc.
You will be able to see the view count for each view and the workbook in total.
Does this give you what you need?
Number of Views for Workbook.twb 55.7 KB
3 of 3 people found this helpful
I don't believe your statement to be entirely correct. I frequently update /tweak workbooks I own by republishing them to the server and the historic viewed stats don't get reset. I am overwriting the existing report though, so the 'workbook id' stored in the postgres database is being retained (essentially updating an existing record in the db).
If your users are either a) publishing a new instance and then deleting the old* or b) deleting the old and then publishing a new version**, then the ids will be changing, hence the stats start again as the database sees these quite rightly as completely different instances (you're inserting records in to the db).
* a) you'd only be able to do this if publishing workbook with same name to different project and then the url of the workbook would be modified with a _1 or similar at the end
** b) this way you can then publish the same project and the url will be retailed but it is still a new instance.
2 of 2 people found this helpful
We are having somewhat similar situation where business want to preserve the views and favorites count that was in dev stage, and it should be preserved when the dashboard is moved to production.
It will only work in the following scenario
There needs to be a workbook with the same name within the site project folder, Over write and views and favorites are preserved.
If you keep the workbook name the same, but the worksheets /dashboards within the workbook are renamed, it will loose the views and favorites.
And there is no way of retaining that as its not stored in the database
That should not affect the view count
My bad Jyothi. I renamed the worksheets and lost all the views
I had the same problems. After I modified an existing workbook on Tableau server and republished it, the view counts were all reset to zero. I did some experiments and found it happened because I was not the owner of the workbook. After I changed the owner to myself, the view counts were preserved.
I short, to preserve the view counts, you need to make sure that the project name, dashboard names, and workbooks names were not changed, and you(publisher) is the owner of the workbook before you publish the workbooks. The owner will become you after you publish the workbooks. You could change the owner back to the original owner if you want after you publish it.