Google Analytics 4 Confusing Sum - google-analytics-4

I'm trying to understand the new Google Analytics here, but I have a question about real time.
The sum of active users in the last 30 minutes in a city is = 2
The sum of active users in the last 30 minutes and another city is = 1
Total active users in the last 30 minutes = 2
Wouldn't it be 3?

Related

SAP Business Objects - Calculating services activity across months

I have a requirement to calculate a persons total activity, for each month that they have activity. I'll give a couple of examples to demonstrate my needs:
Client A - Service starts 15th April and ends 5th June. They are scheduled to receive 7 hours per week of activity.
Client B - Service Starts 15th April and ends 20th April. They are scheduled to receive 14 hours per week.
Given the above I would want a table that shows the following:
Clients
April Hrs
May Hrs
June Hrs
Client A
16
31
5
Client B
10
Total Activity
26
31
5
Currently we are having to calculate each month individually and stack up the table with each months data. Is there a way to generate this calculation across months, taking into account the start dates, end dates, and commissioned hours activity per week and calculate the actual received activity in each month?
Thanks in advance!

Summing up all rows for each column

Please find attached workbook in the post.Post at Tableau community forum
This is what I am doing:
I have a list of tasks with a start date and assigned to one of the companies.
I want to find the time it takes between the tasks for every company. Then I need to categorize those hours in one of the 5 categories such as [if hours less than 5 then "On Demand"] and so on.
I want a view which can show name of the company and count of each of the categories. I am unable to attach the workbook here so if you want refer it then find the link above.
So, steps are:
1) find hours between consecutive dates for each company.
for ex: company 1 start date 1 : null
company 1 start date 2 : datediff('hour',start date, start date 2)
company 1 start date 3 : datediff('hour',start date 2, start date 3)
company 2: start date 1 : null
company 2 start date 2 : datediff('hour',start date, start date 2)
2) categorize hours into different categories.
eg: if hours less than 5 then "On Demand"
Now I want the view as:
company Category1 category2
CA 1
MA 20 30
Any help would be appreciated.

Tableau moving average

I have to count distinct users who log everyday to define whether they are active or not. One user is considered "active" if they logged in at least once in last 14 days.
Given a day X, my metric is calculating the % of distinct active users on the total registered.
So: % Active on day X = (#distinct users having logged at least once during the period X to X-13) / (total registered users on day X).
I can manually calculate it for day X.
What I find challenging is creating a time series of this metric (everyday one %, everyday a rolling period of 14 days).
So:
% Active on day X = (#distinct users having logged at least once during the period X to X-13) / (total registered users on day X),
% Active on day X-1 = (#distinct users having logged at least once during the period X-1 to X-14) / (total registered users on day X-1),
% Active on day X-2 = (#distinct users having logged at least once during the period X-2 to X-15) / (total registered users on day X-2),
etc.
useful information: I have a column containing the UserID, one containing every day he logged id (in case of multiple daily logs, still one row per day) and one column for the registration date.

How the target response Date is calculate in an Entiltment Process Milestone?

I am new to the Entitlement Process and Milestones using the OOTB implementations. In my org, two business hours (1 for SLA and 1 for OLA) set with different timezone. Each business hours configured to work 9 AM to 6 PM.
Extending the question from link : What will be the time trigger value based on the Business hour in salesforce? .
I have some SLA which has 5 days of deadline. As per formula ((EOB-SOB) * MPH) * NOBD), I need to get clarification on below if its correct:
EOB = Assume 5 days deadline, so 14/05/17
SOB = Today, so 09/05/17
MPH = 60 minutes
NOB = 5, What do I need to consider here? As No. of business day means 5 days
here, as 5 days of deadline?? Please clarify.
One thing which is observed for 5 days business: as per formula 5*60*5=1500 or 5*60*9 (no of business hours)=2700. As per 2nd logic I implemented, but OOTB not showing 5 days, its only showing the 2 days why ?
First of all, regarding: What will be the time trigger value based on the Business hour in salesforce?
EOB, stood for end of Business day, so 19:00 or 7 PM
SOB, was 10 AM in your sample
I have cleared up my original answer on that question as well.
Current question
Target Response (Days) showing 2 for 45 hours....
Ah, eh, yes tricky and often asked for. The 2 is simple 45/24 and then rounded off...
It is not business days!
There are some ideas on the Idea Exchange for this, but for now this is how it is.

Hide Total Row in Rep[orting services

I have a report with total lines after a show is being reported.
A show may run a week or several weeks. I want to hide the total line when there is only 1 week for the show but display the total line when there are more than one week. The example below should hide the Total row for "An American In Paris" but show for the other shows because they run for more than 1 week.I group by performance, week, start date.
I have tried:
=IIF(SUM(Fields!week_performance.Value)<=1,True,False)
and
=IIF((Fields!week_performance.Value)<=1,True,False)
neither seems to work, even if week = 1 the total line still shows
Performance week sales
A Gentlemens guide to Love & Murder 1 1500
2 2000
Total 3500
An American in Paris 1 1800
Total 1800
First Date 1 1900
2 2100
3 1800
Total 58000
I think what you need is the CountRows() function. In this case, using it as follows will default to the current scope (i.e., the group of the showing, in this case) and should count just 1.
=IIF(CountRows() = 1,true,false)
In addition to CountRows(), if you had some unique value per showing, you could use the following:
=IIF(CountDistinct(Fields!UniqueID.Value) = 1,true,false)
If this doesn't work, reply as a comment and I'll do my best to help.