export tableau to csv including measures - csv

I have a tableau workbook that was given to me. I open it and I see everything there.
I want to export the data to CSV including the measures which are a bunch of sums. Right now the measures are in the right 4 'colummns' but not in the column shelve.
How do I get it out into CSV format clean so that I can push it through R. This is driving me nuts...

To keep things clean, and save processing power, what I like to do in cases like this is drag all the dimensions and measures to Detail, instead of rows or columns.
I choose the Bar chart manually first. That way, Tableau won't waste time processing a visualization for the data. But the data will still be there, you can right click on the "phantom" chart, and select View Data. All is there. What is also there is an Export button, that will export to a csv.
If you have Tableau Server, you can use tabcmd to export this data to a csv.
tabcmd export "worksheet-name" --csv

There are several ways to do this. Tableau allows you to export "data" or "crosstab." It sounds like you're looking for the raw data version here.
The most obvious would be to use the Worksheet menu and select "Export > Data."
If the worksheet is published to Tableau Server, just add ".csv" at the end of the browser URL.

It would help to have some more details. For example, whether you want to export the aggregated measures (the sums) or the underlying data rows that contribute to those sums.
There are many ways to export data, but you can start by using the Worksheet->Export->Data menu to export the data displayed on the current worksheet.

Related

Tableau isn't converting my csv data source to tables

When I import a csv to Tableau, it gets the same format of the original csv file (a single column with every label on it). How can I make Tableau separate the columns based on commas?
I can't see why this is happening, since in every tutorial I checked Tableau already converts the .csv to a tabular format.
Here's what I get
Note: I'm using Tableau's trial version.
Sometimes when you open a csv in Excel it can mess with the formatting like your image shows. If you think you opened it in Excel before connecting, try downloading your source again and connecting first with Tableau. If that doesn't work, I happen to have this dataset in a .tde if you would like to use that. vgsales.tde
Edit: Thinking regional settings might be a factor.
Click the dropdown on the right of the data source. Select Text File Properties
To get this window:
Can you match these settings?

Export E-Training Reports Automatically

We have an E-Training Site for work. The system administrator needs to print out the results for each course. What he does now is clicks on each individual course, and then clicks on the export to csv option. However, he has 100 or more courses. Is there a way to automatically get the reports into csv format without him having to click on each course? Right now it's taking him about an hour and a half just to get the csv reports. The E-Training runs on Moodle, if that helps.

export plots with netlogo

I am trying to export all the plots of my NetLogo model after simulation runs in a csv format with the primitive export-all-plots.
I haven't found yet the way to open this csv file with an external reader in order to get more clear plots. I tried with gnuplot but it looks like it's not able to open the csv format created with NetLogo:
"export-plots data (NetLogo 5.0.5)"
^
"C:\results\interface.csv", line 1: invalid command
How can I open csv plots with an external reader?
There are two complicating factors about NetLogo's plot export format. First, there's a three line header at the beginning (plus an empty line after) that just gives information about the model and when the data was generated. Next, there's data about the model settings, the plot state (pen colors and such). Finally, there's the data itself, which itself is somewhat complicated by the fact that you can have multiple pens per plot. So I'm not surprised gnuplot couldn't read it as is.
The table's are quite easy to use in GUI spreadsheet application, like Excel, LibreOffice's Calc, or Gnumeric. You can just select the data you want and generate the plots.
To do this at the command line, I'm afraid you might have to write a script to read it in. This should be pretty easy in something like Python or R. Just skip the metadata lines, and use a CSV parser to read in the rest.
You might also try using BehaviorSpace to generate the data, but make sure to use the table output. It let's you generate the data from many runs at once, and the format is a little more consistent. There are still 6 lines of metadata at the top, but you can just delete that. I believe this is more the standard practice in NetLogo.

Output/export information from configmgr 2012 ssrs report

I understand it is possible to export the report data into multiple file types using the export button. however i'm wanting to access the information without having to manually export. So my question is, is it possible using a batch file or powershell to read a text box on the report and output it say into a notepad file or spreadsheet. or if not maybe just a way to export all of the data on the report without having to manually do it? Screenshot attached for an example.
One option is to create a subscription for the report and either have an attachment emailed to you or have it saved to a network location. In either case, there are several export options (csv, excel, xml, etc.). If you're only wanting partial data from the report, I'd recommend creating a sql query or just create a new report that gets you exactly what you need.

import csv file

I need to pull data from csv file to SQL Server table. Which Control task should I use ? Is it Flat File ? What is the correct method to pull data ?
The problem is I have used Flat File Task for pulling csv file. But the csv file whihc I am having, contains headings as first row, then on the third row, I have the columns, and data starting from fifth row.
Another problem is, in this file column details comes again after 1000 data ie columns appears in two rows. Is it possible to pull data ? If so, HOW ?
While Valentino's suggestion should work, I suggest that first you work with the provider of the file to get them to provide the data in a better format. When we get stuff like this we almost always push it back and ask for properly formatted data. We get it too about 90% of the time. It will save you work if they will fix their own drek. In our case, the customers providing the data are paying for our programming services and when they understand how substantial an increase in the cost to them, they are usually nmore than willing to accomodate our needs.
I believe you'll first have to transform your file into a proper CSV file so that the SSIS Flat File Source component (Data Flow) can read it. If the source system cannot produce a real CSV file, we usually create custom .NET applications for the cleanup/conversion task.
An Execute Process task (Control Flow) that executes the custom app can then be called prior to the Data Flow.