Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

how to delete old data from published Tableau datasource

ankurrjit
8 - Asteroid

Hi,

I have a workflow where I am taking current MTD data from source SQL and publishing it to the Tableau server. I need the achieve the following :

 

I need to maintain 12 months of aggregated data in the tableau data source so if on every 1st of the month I append the previous month data into a separate Tableau data source "TC_history" and join with daily tableau data source i.e. "TC_Delta" and "TC_history" tableau data source, it will work fine but once I reach where I have 12 months of total data and now I am in 13th month, how would I make sure I have only 12 months of data. Any ideas?

 

I am ok if this can be achieved through flat files as well, I can think to use a flat-file as a final source for Tableau data source.

 

2 REPLIES 2
David-Carnes
12 - Quasar

@ankurrjit 
I haven't had to do this (yet) but what I would do is download the data from Tableau Server via their REST API, filter out the data you don't need, append the new data, then publish the new .hyper file with the Publish to Tableau tool in the Connectors palette.  An option there is to overwrite the existing hyper.  (This assumed your data source is stored within Tableau Server.)

If you .hyper file is instead in a file share, then just read the file into Alteryx, do your additions and deletions, then save the file over the original.

Hyper API:
https://help.tableau.com/current/api/hyper_api/en-us/index.html

(Found out about the Hyper API in a post by @joshuaburkhow 
https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Tableau-server-as-a-input-datasource-i...)

 

Good luck!
David

ankurrjit
8 - Asteroid

Thanks @David-Carnes , It really helps.

Labels