Hi,
I set up a workflow to audit a Tableau .twb file. I got the idea after reading this post but found that that macro didn't quite get me the output I was looking for. Being new to XML and RegEx, this current version took me quite a few brain cycles and I suspect there are multiple ways to improve it, which is why I'm attaching it here. It works, but there may be ways to arrive at the same (or better) results with fewer or more robust/elegant steps. :-)
What it does:
What it doesn't do (yet):
If this module works for as-is, feel free to use it. If there are things I can do to it to make it run better/easier, I'm open to all feedback. :-)
Hi Mix Pix
I am also interested in doing this for my workbooks. Can we include the dashboard name and the associated workb sheets. I see currently you are joining with worksheets. I think it would be good if you can get the dashboard name.
Datasource name
Can we get the table names and SQL Query also added to the workflow if that is something posisble to make it useful.
Thanks
karthik
Hi karthik,
Thanks for the note...yes, including dashboard names is something I am thinking of adding now that I've got the basic elements down. :-) Regarding SQL and Table Names, I'll need to experiment with the XML against a workbook that uses a live database connection...none of ours do, so I don't have any firsthand experience with that.
I'm attaching a slightly modified version to what I published earlier...I added a few steps to deal with workbooks that are missing key fields like column captions etc. This definitely remains a work in progress as I get more feedback. :-)
-Mike
Hi Mike
I went ahead and added the server connection details extraction from XML- serverdetails , user name ,port , etc - done
Removing the duplicate columns / Joined the columns based on data source name and column name ,
Table Names/Custom SQL when directly connected from tableau - done
if we have any relationship/joins defined ( This is still a question mark on how to parse the nested XML).
I was trying to parse the dashboard//worksheet relation but still haven't found the way as it is Nested XML and need to find out the names from Zones elements.( This is still a question mark on how to parse the nested XML).
Thanks
Karthik
Hi Karthik,
Thanks for working on enhancing this workflow. I'll need to spend a little time to decipher what you addded. Parsing XML is still something I'm trying to get more comfortable with. :-)
Guys thank you for this. It has been a great help.
Nicely done. This functionality was really lacking in Tableau but now we do have a way forward - short of editing and revieweing XML.
Thanks @mohsin! Yeah, it's nice to have this level of control and I suspect we can build this out to do even more.