Importing a table from an HTML file directly to Tableau - tableau-api

I recall seeing a direct import of a table in a Wikipedia HTML document directly into tableau. Tableau's website has a method that involves using Google doc HTML import function
=ImportHtml("http://en.wikipedia.org/wiki/List_of_bank_failures_in_the_United_States_(2008%E2%80%93present)","table",2)
to first import the tables into a Google spreadsheet and later download the spreadsheet that can be linked to Tableau.
Is there any way to import a Wikipedia table, or anyt other HTML doc directly into Tableau?
Thanks

Tableau lets you paste data from any application that uses csv delimited text on the clipboard (not all apps do). Here's a knowledge based article on it.
http://onlinehelp.tableausoftware.com/current/pro/online/en-us/clipboard_datasource.html
Unfortunately, it didn't seem to work o nthe table you pointed out in your example, perhaps the HTML is too complex. But if you can somehow export the table as CSV, it can be loaded in Tableau.
Tableau Version 8 is due out soon, and has a couple different new APIs available that should help with connecting to data from various sources.

Related

tableau web (print / download PDF) large report from dashboard

I was wondering if it is possible to print/down large PDF large report from a dashboard that requires many pages with a company logo. I tried view and it is only what is on my screen and the specific sheets from this dashboard does not include the logo which I need.
Not big text tables like that :( Essentially Tableau is a dashboarding tool and what you have created is a massive spreadsheet - that you now want to turn into a PDF? (yikes!!)
I'd revisit your requirements. Is it easier to pull the data directly from the database as a CSV? and then do some formatting? A PDF will be a nightmare for any user.
Tableau has (in my own opinion) limited features about exporting data in different formats, and it is because it is not a reporting tool (like SAP BusinessObjects for example).
The best way to add a company logo is to add an "Image" block inside your dashboard with the logo. The following image shows how to add in Tableau Online, I can't understand if you're using Tableau Online or Tableau Server, you mention Tableau Web that does not exist :-) .
Now I think that your problem is if you want to repeat the logo on every single page that you export, is this your case?

How to Export Multiple Cross Tables from Tableau Server into Excel

I have tableau server 2018.2 version but How to Export Multiple Cross Tables from Tableau Server into Excel
As per my understaning, it is still not possible to download multiple sheets from a published workbook. The user has to download one at a time.
There is even an idea created to promote this feature: Tableau Community Forums > Ideas > Ability To Export Whole Workbook To Excel Similar To The PDF Function
One workaround is to create a new sheet with all the data you need, in the format and order you need. There is an example here: Exporting CSV Made Simple

Tableau: can a visualization be created via javascript or other language?

I am trying to create a new visualization (sheet) in a tableau online workbook via javascript API or by another language. Not by using Tableau Desktop or "manual" interaction into Tableau Online.
I know that the JS API allows me to control (filter, display, etc.) existing visualizations, and the SDK can extract data and publish, but my need is to "create" a new visualization into an existing workbook.
Is there a way to do this?
The only methods of creating Tableau content that I'm aware of is using Tableau Desktop or Web authoring of something that is already published.
I explain how to do what you're asking on the blog post linked below. You can use Python with Jinja2.
The basics ...
Create a template of your XML.
Put in the necessary Jinja2 templating language code into your template as placeholders for the data and XML that needs to be rendered by Jinja2. You can render data conditionally as well.
Create a CSV file that specifies what the Python program needs to know to create your workbooks.
Run your Python application to generate a TWB file based on your template and input file. You can also easily create TWBX by zipping the TWB and data together.
The link gives code examples and an example CSV file for specifying your input.
https://www.linkedin.com/pulse/create-tableau-visualizations-programmatically-allan-thompson

Exporting in Netsuite

One of our customer's uses Netsuite ERP. We would like to be able accept pick tickets(orders) from them in a format that would allow us to import the pick tickets into our custom built ERP system. Naturally, I asked them if they could export the pick tickets as CSV to us.
They are attempting to build a custom report with all the fields we need and export it into csv. Aside from them having issues exporting the report only to HTML... Im curious as to why they cant just export the pick ticket they have been sending us, which is in pdf format.
On top of that. Ive noticed via SuitesScript you could modify the on click event to generate a csv of the data. So when they click generate print ticket, why could it not easily generate a csv at that time?
Basically, due to me not havign hands on to their NetSuite system - or any insight to the inner working of NetSuite, im looking to the community to explain to me, what they are doing wrong - or what the best solution is to attain the goal of: exporting a pick ticket(im assuming this is based from the sales order in netsuite...) in a friendly format, allowing me to automate the order entry into my company's system.
I am sure Netsuite provides CSV option for exporting Reports. Please refer to this doc.
To export a report:
On the Reports page, click the name of the report you want to see.
In the footer of the report, select Export-CSV, Export-Microsoft® Word, Export-Microsoft® Excel, or Export-PDF.
One possible problem may be the Role Permissions. Please refer to this.
If your search results pages do not include an Export button, your account administrator may not have assigned you the Full level for the Perform Search permission. This level is required for exporting search results. The Export Lists permission also is required. See Permissions for Searches.
you should be able to export pdf. Please refer to https://github.com/eliseobeltran/NSProject/blob/314c5a03c4251cd06d451527103b7b85bb63f130/GOP/Innov.GOP.GeneratePDF.js
Once you create the saved search, NetSuite has the option to export the saved search as the CSV, MS EXCEL, or PDF. But it's a manual approach. You can do it automatically by writing a JavaScript script in the Suite Script.

tiki-wiki: How to batch import categorized articles from a CSV file

Importing categories as a CSV file is OK in tiki-wiki, But how to import categorized articles to the system. Tiki supports media wiki and word press importing, While my data base has another format.
Is there any module for CSV upload/import?
Is there any flexible migration-like script to import articles?
In case that both of answers are NO, would you please give me a clue to write down the proper code to import articles directly to data base.
I went through understanding database, But I think accessing to database directly should be my last choice!
For custom import jobs, you can use Tiki's profiles. The profiles are a YAML-based format. While it is not the primary use for them, it might be the easiest way to perform what you want to do.
Normally, you need to place the profile in a repository to execute it, but there is a developer option to load content from a textarea. You can simply prepare your YAML definition and paste it in there.
Categorizing elements through the database could be harder than it seems as many tables are involved.