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.
Related
I'm trying to calculate the sum of Impressions and Clicks by AdGroupId in Tableau. Tableau is returning wrong values of summation for several AdGroupIds although the underlying data seems to be perfectly fine.
Refer attached images - the sum of impressions and clicks for the given AdGroupId is clearly wrong.
Can anyone point out the issue or suggest what can be done in this case?
Before building a view, convert AdGroupId to dimension. From your screenshot it is clear that the field is a measure.
Ids are sometimes stored as numbers. Tableau automatically convert numbers to measure. But i don't think there will ever be need to calculate sum(id) or average of id.
Count you can calculate from dimensions too. It is therefore advisable to convert these type of dimension fields to dimension/string data type at the time of importing the data in Tableau. Hope this clarifies
I am trying to build a forecast for interest expense for floating debt in my company.
I have been given a set of ResetDates which help me match a given rate based on when the ResetDate is.
I have been successful in forecasting one period, but I need a much longer set of periods to satisfy my requirements.
I've tried derive nodes and nested if statements as well as filler nodes.
I am given this data to work with, I can only look at one ResetDate ahead.
Here you will find the data I used: Columns A/B/C/D is what i'm given, Column E (or 5th column from left to right) is what I want to derive as my output
I want to use 'InterestPayDate' and derive:
if it's more than 'NextReset' , the add 90 days to the 'NextReset' to create 'NextReset2'
That is as far as I can get.... where my problem lies is I want to look at NextReset2 and derive:
if 'InterestPayDate' is more than 'NextReset2', then add 90 days to 'NextReset2', if it's less than 'NextReset2', keep the current value for 'NextReset2'
Output should look like Column E here
Not sure if I need to dig deeper into the logical functions, in all honesty, I've just picked up SPSS and I am really trying to learn. Hopefully, you can point me in the right direction.
Thank you.
After computing the first NextReset2, you need to use a Filler node like the one below to change the value of the field.
You might need more than one identical nodes like this - one for each potential 90-day period that you are looking to extend the NextReset2 date. In your sample data, you will need at least two Filler nodes to get the correct value of NextReset2 for the last of the records.
There might be a more elegant way to do it, but this will work and it's easy enough to make copies of a node and string them together like this.
Please also see a sample IBM SPSS Modeler stream showing this approach here and using your sample data.
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.
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]))
Ok so I'm not talking about calculating the difference between 2 dates in different cells. I know this may not be possible but I thought I'd ask anyway since I can't seem to find anything on it.
What I'm trying to do is setup a column that auto-calculates the difference between a date value entered into it and the current date. The purpose is to create an auto-filling point system. Where an entry receives points equivalent to the difference in due date and current date. So if someone submits a job request today, 5/30/14, and wants it back by 6/5/14 then they would receive 6 points, which is the number of days difference between now and then. However, I want this all done in a single cell, not calculating between 2 cells. I want each cell within the column to auto-calculate itself when I enter a due date, and transform the entered date value to the number of days difference.
Thanks
Try this, just subtract to get the answer in days
A1 =DateValue("12/25/2000")
A2 =Today()
A3 =A2-A1
A3 is in days. (4904)