Tableau - How to replace data source for only one sheet - tableau-api

I am pulling data for a couple brands into google sheets with zapier. I am pulling information from each sheet as a separate data source in tableau. The formatting across the sheets is uniform, only values are different.
My objective is to use a completed viz sheet as a template, so that I can duplicate the sheet, and replace the data source. However I am running into a problem.
Generally when replacing a data source with "replace data source" the changes occur on a project wide level, but I need the changes to occur on a sheet level.
Is there any way to hook a viz sheet into a different data source, assuming the data source has the same formatting as "template" file?

When I need to replace a data source of just one sheet, I copy and paste that sheet into a new workbook. Replace it there, and copy and paste it back to my original workbook.

A quick look on google brought up this: https://community.tableau.com/ideas/1156
It shows first that there is no "Replace source for current sheet"function as such but also gives a workaround for that:
Create bookmark (details: https://onlinehelp.tableau.com/current/pro/desktop/en-us/save_savework_bookmarks.html)
Rename original datasource
Re-import bookmark
This creates a second instance of the data source for the bookmarked sheet
Change the newly created datasource which is only used on one sheet

Related

Google app script to update data in row 2 (a named range) of a spreadsheet

i've created a script to mass produce copies of a Google Sheet from a master sheet. The script changes the name of the documents according to data in a separate sheet.
Within the template sheet, I've set row 2 as a "named range" and what i'd like the script to do is to also change the data in that row based on data I have in the master sheet.
I have been previously advised that this is possible but I confess I have no clue how to code this in to my script!
Is anyone able to offer any code which might do the job?
Many thanks
Kerry

Uploading data source to server is deleting calc fields?

Have a data source being uploaded to a server environment. Calc fields I have are fine within my workbook before doing so, but sometimes the = portion of the name disappears and it turns into a regular dimensional field.
Example:
pre upload
post-upload
What could be causing that?

How do I use cloud dataprep to convert my excel file to target formet regularly?

I'd like to convert my excel to proper format using Google Cloud Dataprep. How do I save my convert flow and use it as a template? For example, if there were two excel files named A and B and I create a flow to merge these two, next time there are two other files named C.xlsx and D.xlsx, how can I use the flow I created to merge C and D?
You can copy and reuse recipes (using the right-click or ... context menus and selecting Make a copy > Without inputs), or you can swap the input dataset for the original recipe and select your new file without having to recreate the recipe.
If your goal is automation, this is a bit more difficult when your source is an Excel file (as these are only an allowed format when using the uploader).
If you're able to have the data output in a CSV and uploaded to Cloud Storage, it opens up additional opportunities to schedule and parameterize your process.

Word Template Linked to Excel

I have an Access database that creates a Word document based on a Word template. In that template are a bunch of Charts, which in order to change their data, I have to programmatically launch an instance of Excel for each chart, change the data, then update. This is not only distracting as it flashes each Excel worksheet up on the screen then disappears, but it's incredible slow.
It would be great if the Word template could be linked to an Excel workbook where each chart is linked to that one workbook. Then, I could update the Excel file and the Word doc separately. Much faster.
The problem is, I would require there to be a separate Excel file for each Word doc. Basically I'd need a Word template to link to an Excel TEMPLATE. Then when the new Word doc is created from it's template, it's linked Excel stuff is linked to a new Excel file based on an Excel template.
Does this make sense? I just can't all Word docs linked to a single Excel file.
Thoughts?

Browse Field Data contains value but nothing is shown on the report

I have annoying issue with CR 2011. We are trying to upgrade from very old CR8.5 (DBF files are used as source(s) for the reports) to CR2011 and right now strange issue has appeared.
There are several fields on the report and all of them contain some data (as can be seen in the dbf file itself and/or in Browse Field Data) but few of them are never "shown" on the report. (If I, however, browse the data within the preview in CR2011 designer, I can see the data with no problem.)
This report uses two (non-linked) tables.
If I try to create a blank report, add these two tables & format the report again, I'll get what I expect (i.e. all fields shown on the report). (But this is not a solution as we have hundreds of reports.)
It does not matter if I (re)save report in latest format.
Everything is shown when using CR8.5 (designer or "runtime")
Has anyone experienced similar behavior and/or some tips where to look?
Non-linked tables are "less" supported than before (whole support for dbf files is limited). So the only correct solution is to link non-linked tables together. In my case, as the "free" table was parameter table. I had to simply add "paramid" to both tables (always set to 0) and perform the linking.