Tableau - show months with null values in bar chart - tableau-desktop

I have created a bar chart showing a count of instances during a filtered list of months. However, where there is no data for a month it will only display the months (using show missing values) between a start and and end date where data resides. but for example if I have no data for Dec and Jan, but data for Nov, Nov is the last month i see.
is there anyway to show all months in the filter regardless of data being present?
chart showing missing values, but only between actual values
I have created a bar chart showing a count of instances during a filtered list of months. However, where there is no data for a month it will only display the months (using show missing values)

Related

YouTube analytics API missing data for last 3 Days

We are calling the metrics endpoint to retrieve likes, dislikes, comments, shares and avg watch time for specific
https://www.googleapis.com/v2/reports?ids=channel==MINE&dimensions=video&metrics=likes,dislikes,comments,shares,averageViewDuration&startDate=${startDate}&endDate=${endDate}&filters=video==${video_id}
Which works and correctly returns data - however the data for the last 3 days is always empty rows. See the below screenshot with the dates and the empty row property
The value for the 14th of November is correct - but when we fetch for the 15th, 16th or 17th we get empty rows. We have tested this all week and it is always the last 3 days. Tomorrow we will have valid data for the 15th but not the 16th, 17th or 18th.
We also know there is valid data for these dates - see the image below for the values on YouTube analytics
The dip in the graph is the 14th at 3 likes. But we should have 4 for the 15th and 1 for the 16th.
Any ideas how we retrieve the correct data for the last 3 days?

Adjusting Tableau Date Values to per month

I'm looking to adjust the basic Tableau time frame from the ISO/Gregorian format to a customized one. Currently, I'm displaying data in a line chart by Month and week. The week format is based on 52 weeks ie 'Week 43' = 10/17-10/23. I would like to display the week time line relative to its given month ie the column would read October 'Week 1' = 10/01 - 10/07, 'Week 2' = 10/08-10/14 and the following month would reset the weeks to start at zero. Is this achieved by a parameter?
There are a few features in Tableau that will help you with this.
Read through the on-line help about creating custom dates, setting fiscal years for date fields. The custom date feature is based on the Tableau function DATE_TRUNC() so you might want to read about that as well.
The short answer though is - right click on your date field in the data pane on the left margin, then set the fiscal year start under the default properties and create a custom date at the week level. You want to create a date value, not a date part.
Then use your custom date to build your viz, and change it between discrete and continuous depending on how you want to present your values.

Create a dynamic parameter to update the graph when a user zooms in. (tableau)

I have a time series graph that loads the initial values using the start date and end date parameters to the right, as seen in the picture below. I need to set it up to update the date range to whatever date range the user zooms into.
Any suggestions on how to setup a dynamic parameter for date ?
For reference, the updated date will hit a database function in Postgres which will return more granular data for smaller date ranges instead of down sampling for a large range.
Clarification based on comments:
the report loads up and the graph is blank
user selects start date and end date in the parameters, the data for this range is loaded from the DB
the graph loads up and the user can zoom and pan in the graph
when the user zooms in, the date range in the graph updates. in the picture... the date range is from Aug 2020 to March 2021, but the user is zoomed into Jan.
Asking for: when zoomed in like in step 4, I want to update the Date Start and Date End with the zoomed in Values, so in this case, 12th Aug 2020 should become 1 Jan 2021 and end date should become 2 Jan 2021
Please check this one,
1-Date Granularity
Good luck.

Highstock: left-most column gets truncated depending on chosen end date

I'm using Highstock (version 2.1.8) to draw a column chart that has date-range-selection values of 7 days, 14 days, 6 weeks, 12 weeks, 6 months, and 12 months. I'm well aware that data values have to be supplied for the complete date-range corresponding to any of those selections. So, if the 6 week or 12 week range is selected, the date range of the data should, evidently, end on the last day of the week (I've configured weeks to begin on Sunday, so the last data point should fall on a Saturday). Naturally, I only have real data through today, so I have to generate bogus data 3 days into the future if today happens to be a Wednesday. But if the user selects the 7-day or 14-day range, then I want the last data point to fall on today's date. The problem is that I obviously can't have it both ways. So if my last data point falls on a Saturday that's 3 days in the future, the 7-day and 14-day views show data points for those future days -- not good. But if my last data point is set to today (Wednesday), the weekly views get messed up, i.e. a partially truncated pair of columns appears on the left end of the chart.
Note that this problem only happens with column charts; it doesn't happen with line charts. This is a bummer because I'd like to combine a column chart and line chart on the same graph.
This definitely seems like a bug. I checked if Highstock version 2.1.9 has the same issue, and it does. I don't want to have to supply separate arrays of data points for daily views, weekly views, and monthly views. Presumably, the monthly views will expect the last data point to fall on the last day of the month.
I've created a jsFiddle to illustrate the problem:
(There's too much code to show here, so please refer to the js fiddle).
Be sure and make a one-line edit to the Javascript code in the js fiddle: search for the comment "modify this line" and subtract or add x days from today's date so as to make tmpDate fall on some day of the week other than Saturday. Then look at the 6 week view, and you'll see the partially truncated (one of the two columns is missing) column pair on the left side of the chart.

Tooltip with series with several frequencies

In the demo site, there is an example with series comparison (http://www.highcharts.com/stock/demo/compare).
In this example every series has values at same date times.
What I have to plot is several series but each series has there own frequency (ie : one daily, one hourly and one every 10 minutes).
It works but the tooltip displays :
the 3 values when we are over a full day date time
the hourly and the 10' values when we are over full hour date time
only the 10' value when we are over a 10' date time
Would it be possible to always displays the 3 values?
Or by extrapolating the intermediate values (best) or by displaying 3 date times/values in the same tooltip.
Best regards
Unfortunately it is not build-in, so you need to use tooltip formatter, find the closest point of current (by loops on each serie / each point, comparing x value) and then return values.

Resources