Calculating Missing Weeks in Tableau - tableau-api

I am trying to calculate the missing weeks in the data. Below image shows how is my existing data.
The below image shows what is expected results:I am trying to calculate "Calculated Calendar Week" and "Calculated week Diff"
Any help in achieving the desired results is greatly appreciated!!
Thanks,
Ganesh

I fixed this by creating another data set with all the missing weeks and did a right join!

Related

Qlik sense problem with filtering panel and a graph

I am trying to move the old excel to qlik sense, there is a graphic that is made from the previous day. Then that graph has the dimension of date and measurement has the sum of the amounts per month.
So filtering this by day can be done with a filtering panel, but clicking every day to show me everything can be annoying.
My idea was something like a box where you can enter a value, for example a 6, so when typing a 6 I should show the graph from day 1 to 5.
That is my problem, how could it be done? where can I enter some expression or something to the dimension to calculate the days I want in a simple and intuitive way.
Another idea I had, was to create in qlik sense when preparing the data, a new column that content the sum of the amounts of each day, so that value that I want to show would accumulate
What do you recommend? any help is welcome thanks

Tableau MTTD calculation only shows one result

I'm calculating how long it takes to detect an issue in Tableau.
I have the following calculated field to work out mean time to detection:
DATEDIFF('hour',[DATE Reported], [DATE Responded])
When I use the meantimetodetect calculated field it only shows me one result and the rest 0s.
The one result shown is correct there were 3 days apart from when it was reported to the response date. The rest of the results are reported and responded in the same day so I dont know if that has anything to do with it?
Does anyone know why it is displaying like this perhaps there is a better way to calculate it?
Thanks.

Forecasting with gaps in time series

Hi I'm trying to use the built in forecasting function in tableau and I think it's greyed out because my timeseries values have gaps. Basically there are hours during the day when nothing happened in my data, so nothing got recorded. I'm trying to build a forecast but my data jumps to the 2nd hour, then has results for each hour up to the 6, and jumps to the 9th. I know in ssrs I would try left joining the sql query I'm using as a datasource to a derived field with all 24 hours. I was hoping there was a slicker trick in tableau. All help is greatly appreciated.
Without having your worksheet, I'm not sure if it could be helpful, but have you already tried this quick fix suggested by Tableau?
Basically you should use discrete measures and using the "Fill missing values with zeroes" option.

Powershell: Get data from line chart to excel

I know we can generate chart from excel/csv data using ms chart library. But my question is little bit different. I am just asking for possibilities.
Is there any way to get the data from excel chart?
For those who wants to know what i did. I search it on google but no related result found. I don't know where to start. So, no code written at the moment. I know how to read excel file in powershell.
Any suggestion.
Thanks for your time.
What you are looking for is data or rather data elements.
What is a chart? If we think about a chart: It has an X and Y axis:
It has for the sake of argument and X-axis and we can call that date or data points.
It has a Y-axis for say quantity. Your manager may ask, show me how many logins are done per day for the last 30 days?
You would map out by day or by week how many logins were done and to show this in a "pretty" way: you can do this with a chart.
So, back to your question:
You need to know - What scale are you dealing with? Days, weeks, months, number of readings, etc.
You need to know - What quantity was taken at that time: Days. weeks, months, number of readings, etc.
Once you have both of these, you can then build a chart. Otherwise, using your Google example: It is just a picture and would be meaningless if there is not thing to tie it for a data relationship.
Hope this helps?

getting incorrect running sum variance calculation in tableau

I have a calculation
RUNNING_SUM(SUM([CurrMonth])/RUNNING_SUM(SUM([PrevMonth])))/100
it should give me the %
$1616409.73 / $986568.61 163.84%
but it's actually giving me 125.84%
if I change the date posted from actual day to business day it gives me 511.12%
both of these are not right.. does anyone know a better calculation I can write to give me the number that I need?
Thanks in advance
I fixed it...by moving one of the closing parentheses from the previous month to after the current month. RUNNING_SUM(SUM([CurrMonth]))/RUNNING_SUM(SUM([PrevMonth]))