Viz Filtering in Tooltip not working correctly - tooltip

I would like to add a Viz into a Tooltip to compare the value in a specific week with values from other years. When I do that, the Tooltip only shows 1 value from 1 year only, not the other years.
Here is the Viz I want to include.
But only 1 value gets shown.
How can I achieve this effect? Here is a link to the Tableau data: https://drive.google.com/file/d/1tzM8HAcMjyz3RiSzllBH5UU2JJvP9yV5/view

Corrections to your existing sheets.
Starting with Sheet 2 (Week wise plot):
Drag Date to columns, Value to rows.
Breakdown Date hierarchy to 'DAY' by hitting the + and remove Quarter and Month.
Change the DAY to Week Number from drop down menu on DAY tab.
Drag down the Week tab to rows now.
Drag Date to color mark
P.S. I have added some alignment adjustments to make the plot fit into the tool tip well.
Now for Sheet 1:
Clear your column tab.
Drag Date to columns break down to Week in similar way.
Remove Week Attribute from marks.
Edit tooltip as follows: <Sheet name="Sheet 2" maxwidth="300" maxheight="300" filter="<WEEK(Date)>">
Note: Avoid making Date continuous unless relevant to your use case.
Hope this helps.

Related

Hide future months with 0 values from chart in google sheets

I have a sheet that automatically pulls in order numbers every month, and a chart to show the trendline. I have formatted the future months because I want the chart to be automatically updated. But the value of the order numbers for future months in currently 0 and that messes with my chart. I want those to be hidden from my chart, so that the chart only runs to the last month.
Example sheet: https://docs.google.com/spreadsheets/d/11FOBKKfxY-usK5aGjrc8KpoiYeMgXrb3apzfYrpoaUg/edit?usp=sharing
added a solution in your sheet here:
you can filter the data first and use those columns as data source for the graph. the formula auto-updates until previous month stats. and also you can just hide those columns since you have the primary A,B columns in visibility.
=filter(A:B,EOMONTH(A:A,0)<=EOMONTH(TODAY(),-1))

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.

Tableau line graph is separated into two panels and I want to combine these

Preface: I ALREADY KNOW ABOUT THE DUAL AXIS FEATURE. Unfortunately, this is not the solution I need.
I have a line graph of sales over the past year. The x-axis of my graph is delineated by months. However, since I want the months to appear in order (August 2020 to August 2021) I am forced to delineate by year in addition to months. This would be find, except there is a giant discontinuity in my graph between the year 2020 and the year 2021 in Dec/Jan. It looks as though my graph is separated into two separate panels based on year. Does anyone know how to combine these panels and eliminate the discontinuity?
Thanks in advance! :)
First only have one Date field on the columns shelf.
Then right click on that pill and select the second Month choice. You should get a green pill and one horizontal axis and a mark per Month/Year. That choice invokes the DateTrunc() function on your Date field (you can see by double clicking on the pill) and is displayed as continuous (green) by default.
People often say this choices causes the date to be treated as continuous - but that is only a side-effect, and can be changed. The more fundamental effect is that it calls DateTrunc() instead of DatePart() on your date field.

How do I show data for 4 weeks on a Google Sheets chart by week day?

I want to show data for 4 weeks on a Google Sheets chart.
I have tried to do this and it is mostly ok as this is correct:
The X-axis shows the days of the week
The Y-axis is the weight number
Issues I have with my current implementation are:
I had to make a separate series for each week when I wanted it automatically group the data by week number. (I then can't name each series)
The data is off by one day. Monday's data doesn't show which means Tuesday's data is showing in place of Monday and so on.
Here is a link to the google sheet and a screenshot below: https://docs.google.com/spreadsheets/d/147RMW2JE7MoWz53EZuB-nHj-p_xeKez_ze_0mqq8NGA/edit?usp=sharing
My expected result would look more like this:
Here the lines are shown grouped by each week AND data is shown for each day
The reason why you are missing the first day of every week is that you have checked the Use row 1 as heeaders so every series will remove the first datapoint (monday in your case) and insert it as the label for that series (you can see that in the legend).
If you uncheck that checkbox and change your range for the X-axis so it goes from Monday to Sunday you get the correct graph.
The problem with the previous graph is that although all its datapoints are correct there is no legend. But unfortunately there is no way to insert a legend easily because you cannot go and change this manually, the label for each series has to come from the cells.
What you can do to work around this limitation is change your data so the label for each series sits on top of your data and keep the Use row x as headers checked:
Of course this is not the only solution, you can go on multiple ways here, copy the table in a single sheet for every week, or just live without labels. Stack the weeks horizontally so everyone has its week number on top of the weight column, etc

Change color of cell if sum of row drops below 2

I'm working on a sheet to help me keep track of inventory at a bookstore. Here is a watered down version. There are 19 titles in total, kept at three different warehouses. I'm working on a notification system where the top box will turn red if the sum of books in any single title drop to 3, so I know it time to restock.
How can I do that?
NOTE: I can't add another column to get the sum value. The original spreadsheet is pretty crowded as it is.
The full sheet is in the copy of Inventories.
A custom formula in conditional formatting to achieve this:
=ARRAYFORMULA(MIN(SUMIF(IF(COLUMN(C3:E3),ROW(C3:C21)),ROW(C3:C21),C3:E21))<3)

Resources