Why the Path disappear when I input Time in Tableau - path

I am trying to visualize a path from one location to another ordered by time. According to Tableau, after inputting locations and changing the mark type to the path mark, just drag the date to the path and exact the date, the path will connect the location in the order of date. However, my data works before I drag the date. Every time I drag the date to path, the path disappears.
https://onlinehelp.tableau.com/current/pro/desktop/en-gb/maps_howto_flow.htm
I've followed this link and format my data that way. but at the last step, the path disappears when drag date to the path.
Path disappear when input time

I have sloved the problem with arranging a time. Also should put time on details, not on the path.

Related

Hide some Legend Items in Line Chart

I have my line chart showing all the data properly, including some annotated values which are meant to act as the label in the last data point for the lines. I wanted to do it this way so that I don't have to show literally every data label for every data point.
I have everything working correctly, but I noticed I am unable to remove the annotated legend item without removing the series. By removing the series, I lose the label. Below is my chart.
As you can see, the last data points are working as labels (1092 for example). The problem is you can also see each annotated item in the legend (the colored dashes with no text next to them). How can I only show the legend items for Gained (green), Lost (red), Net (gained - lost) (yellow), and Total (blue), without the other dashes? Is this doable?
I am also open to seeing if there is another way to have only the last data point have a data label in Google Sheets. I was just working off of this tutorial.
Below is a screenshot of some of my data rows in an accompanying sheet.
as long as the annotation column is specified as 'Label' for the primary column you shouldn't be seeing the former in legend

How can i create a duration chart in google sheets?

I'm trying to make a file to track the time I study a certain subject:
I would like now to make a chart with all the values (that in this case are durations) in the B, C and D columns, but I don't really understand how to do it. When I select the cells and click "create chart" it does the following:
which is obiously wrong. If i remove "date" from the "series list" in the settings of the chart above i get the following:
But I don't understand what this represent. How can I do this? Please keep it simple.. This is the first time for me using google sheets
Ps i just realized that that kind of format specifies a time (2am, 3am etc) and not a duration. Is there any format that indicate a duration?
Here is what to do:
1.) Select all of your time columns entirely within the spreadsheet itself (not the graph). Using your posted setup, that would be Col-B, Col-C, Col-D. To do this, just click on the "B" at the top of Col-B, hold down the mouse and drag right to Col-D, then release. If you have more columns than these that will record durations for classes, select those as well.
2.) From the main menu, choose **Format > Number > Custom number format > **. In the field at the top, enter this format: [h]:mm
The second chart in your post is actually correct. It's just showing your durations as the decimal percentage of a full day on the Y-axis. The steps above should cause the chart to adjust to showing durations.

How to offset importrange() within an arrayformula()

I have two Google Sheets (separate documents) that contain information, let's call them Master & Source. Within Source I have an undefined range of cells that are in sorted order by date that I need to display within Master. Master is intended to have links to all the various Source sheets, in normal operation, I'll have multiple of these, so I can view all of the quick information about all of the Source sheets displayed conveniently in Master. Master contains a date range that starts before and ends after the date range from within Source (to accommodate other date ranges from other Source sheets).
My goal is to create a single cell formula that can be copied and pasted for each Source that I need to view in my Master that would fill the cells in columns before and after the date range from Source with the string "No Class" and all the cells that match the date range from Source would simply be a copy/reference to the matching cell from Source. This is the formula I came up with:
=ARRAYFORMULA(if({A1:Z1;A1:Z1;A1:Z1;A1:Z1;A1:Z1}<importrange(Link!B4,"Source!A1"),"No Class",if({A1:Z1;A1:Z1;A1:Z1;A1:Z1;A1:Z1}>Link!N4,"No Class",importrange(Link!B4,"Source!A1:Z99"))))
Link!N4 = Start Date
Link!B4 = hyperlink to the google sheet `Source`
Amazingly, it works quite well, except for one major drawback: the array of values from importrange are relative to the cell that the formula is in - aka, the range from Source starts at Master!A1 rather than starting at the first column that has the same date as Source!A1.
This is a screenshot of the result of my formula in Master. *EDIT: No Class has conditional formatting to make the font color match the fill, so you can't see it in this screenshot, but they are the dark grey cells.
And another screenshot, this time of the Source I'm trying to view.
I realize this approach might not be the only way (or might not work at all) but each time I try something else it always comes down to the same problem: how do I dynamically start the importrange at the first column that matches the date from Source using a formula that is in the first cell?
I found an acceptable workaround. This is by no means a solution to the problem of trying to offset data within an array, but it allows me to get what I needed to be done. This code needs to be filled using the fill handle (blue square on the bottom right of the selected cell). I'm adding this here in the event someone gets in a similar situation and needs an alternative way to look at the problem.
=iferror(if(importrange(Link!$B4,"Source!A1")>A2,{"No Class";"No Class";"No Class";"No Class";"No Class"},if(importrange(Link!$B4,address(1,COLUMN(A3)-match(importrange(Link!$B4,"Source!A1"),$A2:$Z2,0),4,TRUE,"Source"))=A2,importrange(Link!$B4,address(2,COLUMN(A3)-match(importrange(Link!$B4,"Source!A1"),$A2:$Z2,0),4,TRUE,"Source")&":"&address(5,COLUMN(A3)-match(importrange(Link!$B4,"Source!A1"),$A2:$Z2,0),4,TRUE)),"No Class")),{"No Class";"No Class";"No Class";"No Class";"No Class"})
A2 is the date of the column in master I'm trying to import into, it changes as your drag the fill handle.
A3 is the cell that the formula is currently in
This works by first checking iferror (but I'll come back to that).
Then, if the date in the same column as the formula is less than the start date "No Class" fills the column (hides dates prior to start date)
ELSE If the date in the same column as the formula is the SAME as the date in the column of the Source (offset by the number of columns away from the start date) then fill the column with the corresponding column from Source (aka, this fills one column at a time, rather than importing the entire range at once).
(Back to iferror) An error is returned for any columns that come after the end date - so iferror fills those columns with "No Class"

Highcharts - zooming to single day pushes column off graph

When zooming to a single date on a column graph with two series one of the columns gets pushed outside of the chart drawing area.
You can see it in action here http://alfred.stlouisfed.org/graph/?g=Sfs
and here is a screenshot of the dev inspector highlighting where it appears off the graph edge
Has anyone seen this before? Or have any idea what settings may be affecting it? It works okay if you zoom out to two dates, but unfortunetly the product owners are insisting on only showing one date.
Thanks!
Every two columns of your data is for three months, not for a day. The chart selects a starting point for every timerange and sticks to it. If you zoom in the empty area in the scale of a day you will see nothing. So correct your data, or your scale of zooming.

How to change/inverse graph style in excel 2010

Does anyone know how to change graph style from graph 1 into graph 2. I tried to do reverse the axis however still can't get the it. Thanks for the help
Plot the first chart (which I assume you know how to do), enter -1 in a cell, copy it, select the x-axis data and Paste Special, Multiply.
Then take your maximum y-value from the original data (say 600), enter that in a cell, copy it, select the x-axis data and Paste Special, Add.

Resources