Line graph using Tableau - tableau-api

I am trying to plot a graph like in attached image ,using tableua by getting data from a text file .
It is having 3 fields Datetime ,track ,inuse
We have 43 different track sizes.Need to plot graph for each track with all in a single graph.
Please help me out.

This should be easy to do in tableau. Try putting time on columns, "inuse" on rows and "track" on color.
I do not have your data but am using the data that tableau desktop ships with. Here is what it looks like with the superstore demo data:
To display the labels, also place track on the label shelf. If you then click on the label shelf, you can choose options about where to display them. To mimic your example, label the line ends.

Related

Power Bi Plot dataset with x-axis dates

I am working with a dataset with which I am creating a dashboard. My dataset is very simple, a first column of [yyyy-mm-dd-hh-mm], and a second column with many values.
I read in many threads and forum about the difficulty to plot dates on x-axis (including hours and minuts).
As reference I am using this dashboard built in PowerBi https://www.terna.it/it/sistema-elettrico/transparency-report/total-load .(Public data of Italian electric energy generation)
This is exactly the outcome I would like to obtain, but by now I cannot display the hours and minuts. I used their data to reproduce the dashboard.
I tried to switch from a "dates" x-axis to a "text" x-axis, but the result is not the same, and furthermore the plot does not occupy the whole page but I have to move to the right.
enter image description here
I really cannot understand how the linked dashboard was built.
Any idea?
I guess your problem is that you have been using Date Hierarchy on the x-Axis you instead of Date only.

How to pickup a shape based on a cell text in tableau reports

I am not a tableau developer but i am just a user of tableau reports. My engineer is telling something is not possible so wanted to take experts suggestions and help to solve the problem.
My requirement is simple. We need to build a report in tableau with 4 columns and the last column should contain a color coded arrows (R,G,Y) representing the data trend (Up/Continuous/Down). The data will change frequently and the input source is excel sheet. My engineer is suggesting that, everytime we have to manually set those shapes in the 4th column, once the report is generated from the excel (basically from the first 3 columns only). I dont like to have a manual intervention everytime in tableau since i am not good at building/editing reports and its not a best practice to automate something.
In below picture the last column is the one i wanted to automatically generated based on excel sheets data.
My suggestion to him is to add the 4 column with data as below and in tableau bring the shapes accrodingly using some kind of a formula or so.
GC = Green continuous
GU = Green upwards trend
GD = Green downwards trend.. followed with different color codes (Green/Red/Yellow) as per data.
Is that possible in Tableau? If so any suggestions here would be greatly appreciated.
Thanks,
Kiran
It is definitely possible, as long as you have a formula that can produce the GC, GU, etc. values. Then it is simply a matter of mapping your custom values to relevant shapes (which is a simple manual one-off step in Tableau). If built-in shapes are not sufficient, you can add custom ones. Some types of shapes can also be colored dynamically, based on another formula.
Use Tableau Help or Google/Tableau Forum to find out how to do all of this.

Tableau and modified Sankey diagram

I have been trying to recreate a modified Sankey based on Adam's work with the American Whiskey Viz and Beatles Analysis Viz that are found here:
https://public.tableau.com/s/gallery/beatles-analysis
https://public.tableau.com/s/gallery/american-whiskey-wheel
I am trying to create the same effect on my own data set. I am not sure how Adam was able to line up the sankey portion with the bar chart perfectly. I have tried many different ID2 field configurations and varying metric fields in the Curve calculated field options with no success. I haven't been able to get them to line up exactly. I would also like my bases to start in different locations along the sankey and not all originating from the left.
I realize that the examples are working with much smaller data sets but believe that this should still be possible with my data. I have tried Business ID in my curve formula and wondering if I need to have a more generic metric in my model. Andy uses Song ID which is a number between 1 and 45. My IDs range from 3-3000. You can see in the workbook attached how I am setting up these fields to get the curve of the Sankey. Is it possible to get them to line up with the barchart at the top of Dashboard 2?
UPDATE 3/22/16:
I was able to get the lines much closer to their bars by modifying the Curve-LoyaltyID2 field. I loaded it to Public for easier viewing. Some lines are still not aligning directly to their corresponding bars though.
Tableau Public
Thanks for any ideas you have!

Tableau - Multiple Line Graphs Day by Day

I would like to create a dashboard showing Level Funnel for the users with respect to their register date on the same chart.
My data is like the following:
And from that data, I would like to create the graph like below:
But in tableau I couldn't manage to combine those graphs below, which are separated day by day:
I tried to follow this steps, http://downloads.tableausoftware.com/quickstart/feature-guides/combo_charts.pdf however I couldn't find 'Customize Marks' button in the menu.
That would be great if you can help me on how to combine these graphs into one graph.
Thanks.
Drag the DAY(Date) field from the row shelf to the color shelf
One way to think about it: When you have the DAY(DATE) field on the row shelf, and you've configured it to present as a discrete field, you are telling Tableau to "make a row for each day". When you move that field to the color shelf, you are instead telling Tableau to make a color for each day. The same mental substitution works for discrete fields on most of the other shelves, like columns, shapes, pages -- i.e. make a page for each day.

How to modify Chart legends in Excel 2013

I am trying to create a chart in Excel 2013 from a subset of data within a larger report. All the examples show using the headers to create the legend on the chart, but since I am just using select rows in the report, I can't utilize the headers. Is there any way to directly modify the legend, or even indirectly. I am open to any suggestions. Basically, I have a row with multiple data points that I want to graph. The title works out okay, but the legend just indicates 1 and 7 (the columns I am charting). Since I don't want to graph the entire report, I don't seem to be able to capture the column headings.
The words in the legend are sourced from the series name. You can point the series name to any cell in the spreadsheet. In the screenshot, the original series names were one, two and three. In the series definition, they got re-pointed to the cells that say blue, red and green.
Depending on your data and requirements this can be made dynamic.