When viewing - Acquisition>>>All Traffic>>>Source/Medium with organic traffic segment loaded with dates Jan 1 - Oct 31, with the revenue metric (line chart graph setting) while viewing by revenue per month, I get the total amount of organic revenue per month from Jan 1 - October 31st. Each month shows the total organic revenue.
However, If I change the date range to only show revenue for October 1st - 31st (note, nothing else is changed but removing Jan 1 - Sept 31), the total revenue for October doesn't match the October revenue when I view it from Jan 1 - October 31st. It is really odd and I don't understand why.
Does anyone have any insight on why the month of October shows different revenue when I set the dates for October 1st - 31st compared to Jan 1st - October 31st with each month's revenue isolated in the graph?
The most likely explanation is that it's a sampling issue, go into GA and look for the shield icon at the top of the report page. If it's any color other than green, hover over it to see what the sampling is. If that is the issue, the main way to get unsampled data is to use a smaller date range, or looking for 'unsample' tools.
Related
In the table below I have customers who pay an amount at a predetermined frequency and duration. In Tableau I want to showcase the payments owed from today until expiry. I want to, conditional on the frequency determine what are their payment and when these payments will fall due.
Date-Start
Date Expiry
Customer
Frequency
Amount
01 Jan 2022
31 Jan 2025
A
Monthly
$500
01 March 2021
28 Feb 2026
B
Quarterly
$800
I have created a date diff to get number of days between today and expiry but im still stuck. How do I show a chart etc with customer A paying $500 for the next couple years? As it stands now I have one static datapoint. Essentially I want to create a series of point as long as expiry hasn't occurred.
I have been looking high and low and so far have seen no options via the code or anything else that seems to even come close to what i am asking. My request is simple enough. Typically when we want to display in a month grid view the month of September 2019 we expect the start of this month to be 9/1/2019 and the end to be 9/30/2019 with anything before or after to be considered other month.
However, I need for my calendar to have a different date range for the month of September 2019. This is so that it aligns with how we manage months. With the exception of the month of October all other months of the year are modified for different date range.
January = 01/01 to 01/30
February = 01/31 to 03/01
March = 03/02 to 03/31
April = 04/01 to 05/01
May = 05/02 to 06/01
June = 06/02 to 07/01
July = 07/02 to 07/31
August = 08/01 to 08/30
September = 08/31 to 09/30
October = 10/01 to 10/31
November = 11/01 to 12/01
December = 12/02 to 12/31
In many cases I do not need to make many adjustments (just some add/remove "fc-other-month" class, as the previous months ending dates are also visible (if using the 6 week enabled flag, which is also set by default), however, in September 2019, 09/01 is on a Sunday of the first week meaning that the previous week that would include 8/31 is not rendered.
I can explore a "brute force" type method of checking for this condition and then prepending another row on top of week 1 with the additional dates needed but I have to believe that there is a simple method where i can simply state the months start and end date range.
I need help with this scenario:
1) Currently it is summer time. I need to create a time interval for June 9 Monday 6 PM - 7 PM EDT and every week after that until end of 2018. This interval will be for students to schedule appointments with a tutor. The client right now sends that as a request for creating start time at June 9 Mondays 2 PM UTC. (EDT is -4 hours offset) The server creates a start time in db for June 9 2 PM UTC and adds 7 days worth of milliseconds to create recurring
^ this causes an issue because of DST. Let's say it is right now November 5th (which is after daylights saving change). The DB still has Nov 5, 2 PM UTC saved as value. But because my timezone changed, instead of offsetting by 4 hours like I did on June, I offset by 5 hours. So the correct start time is "6 PM session in my timezone" becomes "7 PM my timezone". this is the error
the solution is either of one of two (or combination of both):
1) instead of adding 7 days worth of milisecond, you add 1 week worth of miliseconds depending on the user's timezone Currently, there's no way to extract a person's timezone based on utc offset (-400, which is right now in east coast USA, is also applicable to Canada, Carribeans, South America etc. We need to save a user's timezone as a string, rather than UTC offset count. There is an international standard for timezones)
2) ?? something else
How can a day or week or month, essentially a range of time be represented by a single number?
The next interval would represent a number 1 more than the number for the previous interval, just how the next second is 1 more than the previous second, in timestamp representation.
Given a bunch of such numbers, the larger number simply means its representing a time interval afterwards in time, when compared to a number smaller than it.
Just realized if I stick to UTC and represent the day as YYYYMMDD, this becomes a number that I am looking for.
20180420 // 20 april 2018
20180421 // 21 april 2018
20180510 // 10 may 2018
20190101 // 1 jan 2019
This works for representing a day perfectly, I think.
For week, maybe do ceil() of days of current month divided by 7 for representing week as a number W and then using the format: YYYYMMW.
2018043 // 3rd week of april 2018
2018045 // 5th week of april 2018, though may not be the 5th week semantically but representation model works, greater than 4th week of april 2018 and smaller number than 1st week of may 2018
For month, simply YYYYMM works.
I feel so smart right now! 😄
I have never done this before. Now what I want is that I have a report to produce which comprises of the total no of patients present on the bed on each day of the month. Finally I will take a count of all the days as a grand total.
For example: if January is considered, then 1st jan patients till midnight present + 2nd jan patients till midnight present + .... + 31st Janpatients till midnight present = GRAND TOTAL.
Can I do it in SQL Server using cursor or something like that or should can I use C# and SQL Server in combination?