I have to develop a retention report.
I have a requirement where i have to calculate number of active user count at end of each month. Table 1 stores the user details. And table 2 stores the status of the user and the status date. So i get the status as 'Active', 'Inactive' from table 2 by joining these tables on user id.
Now user has option to select a month for which he wants to see the counts. And there is another prompt where user can enter the duration (in months) for which the users are active.
Suppose user chose Jan 2016 and duration as 4.
It should be a crosstab. Row will have 'January'. Columns will be 1, 2, 3, 4 as in no. of users active by jan 31st will come under age 1, no. of users still active by Feb end will be under age 2 and so on. Note that the users active in Jan may also be active in Feb, so counts are not distinct across the row.
Related
I have the above sales order data which lists a day by day update of orders as they go through each stage until shipped. Orders 1 and 2 are shown alongside the status of that order for each date between 1st and 08th February.
What I need to do (in a pivot eventually), is to count the number of days for each order that they were in each state. So for example Sales number 1 was in a processing state for 4 days and a packed state for 3 days and then finally a shipped state for 1 day. I want these 3 numbers displayed beside each status maybe on a separate line?
For example
Sales Number 1
Processing - 4 Days
Packed - 3 Days
Shipped - 1 Day
You'll also notice that on Sales Number 2, the order went back into a "On Hold" state, this can occur in my dataset so just count it as normal e.g On Hold - 2 days.
How would I get this count using a formula or pivot etc?
Simplest way is to use pivot table:
I am looking for a way to get a cumulative count using powerBI dax formulas.
I currently have this measure:
[Tasks opened] = distinctcount(id number of tasks that are open)
When I select the filter month (May 2021), it only shows me the opened tasks in May 2021.
Example - Tasks Opened:
>Jan 21 - 5
>Feb 21 - 6
>Mar 21 - 8
>Apr 21 - 2
>May 21 - 7
>Total = 28
When I select the filter for May 21, I want the measure to show that it is 28 instead of 7, and if I select April 21, I want the measure to show 21.
Help is greatly appreciated! Thank you :)
Elaboration:
Basically I want a method where I will be able to filter the tasks opened based on the date selected on the filter.
When the filter month is May, I want to distinct count the number of incidents that has been open for more than 90 days as of 31 May.
It should change accordingly when the filter month is April, so it should distinct count incidents that has been open for more than 90 days as of 30 April.
It should include all the open incidents (whether it is created in Jan/Feb even though the filtered date is April etc).
I figured it should be like if created date is before filter date, resolution date is after filter date and the incident has been open for more than 90 days, that data should be taken into counter.
--> The issue arise where I cant seem to get the right date for the filter date. Currently I used a measure, but the End of Filtered Date seems to only be the last day of the month (i.e. if filtered month is may, the filtered date will be 31 May 2021).
Open incidents = IF(AND(incident_sla[Created]<=[End of Filtered Month],incident_sla[Resolved]>=[End of Filtered Month]),DATEDIFF(incident_sla[Created date],[End of Filtered Month],DAY),0)
The sample excel file can be found here: https://docs.google.com/spreadsheets/d/1wMLrvfAD1gUUIxljjBgcugJsG4o-w4nE/edit#gid=605277454
P.S. Sorry for the bad formatting, I'm not very familiar with using stack overflow.
I'm working with an Excel sheet of customers, a snippet of which looks like this:
Name
Month
Contacted?
Bob
January
Yes
Sally
January
Yes
Smith
January
No
Alice
March
No
Peter
May
Yes
I'm trying to get a count of the customers in each month that have been contacted and those in each month that haven't been contacted. I've been able to get a count of the number of customers in each month by doing =SUMPRODUCT(B2:B5="January") and a count of how many customers have been contacted with =SUMPRODUCT(C2:C5="Yes"). It feels like there should be a way to perform column-wise logical operation, like this: =SUMPRODUCT(AND(B2:B5="January", C2:C5="Yes")) to get a count of the number of customers that were contacted in January, but that doesn't work.
The end table that I'm trying to generate would look like this, where any edits to the above table should update this one:
Month
Total Customers
Contacted Customers
Non-Contacted Customers
January
3
2
1
March
1
0
1
May
1
1
0
What's the right way to implement these formulas?
Where your Data is in Column A to C and your Table Starts at Column E
I have a .csv document containing a list of 40 000+ contacts for which I have the list of the moment they were contacted (by email) in a date; hour format (i.e 2017-01-17 12:02:00)
Example
contact 1 2018-09-15 14:02:00 2017-01-17 12:02:00
contact 2 2016-02-17 02:03:00 2016-03-17 04:32:00 2017-11-14 08:42:00
What I'm trying to do is to count the number of time a contact has been contacted in a given day or week. Ideally, be able to know
Max number of time a contact has been contacted per day/week during the selected period
Average number of time a contact has been contacted per day/week during the selected period
A bit like this: Count number of times a date occurs and make a graph out of it
Except I have not just one list of dates but more or less 40 000
Thank you all!
Just for this part :
to count the number of time a contact has been contacted in a given day or week
I suggest to save the file as .xlsx > then select the top header of the data > Goto 'Data' > 'Filter' . Then apply your desired numbers/contacts/date/date-range .
So to get :
• Max number of time a contact has been contacted per day/week during the selected period
select the desired contacts + date-range . Then copy the data (date column only) to another sheet.. select all then press F11 to get instant graph.
and for this :
• Average number of time a contact has been contacted per day/week during the selected period
select the desired contacts + date-range . Then copy the data (date column only) to another sheet.. and put your formulas there (average for per day and per week needs different formula/filter).
Hope it helps. (:
We have requirement in which we have to pull a report based on the response and date. Here the tricky part is in a given month we should get the latest response (Which is YES or NO ) for the latest date of the given month.
For some accounts there are two reports generated (Lets say for a account x , two call reports are generated in February i.e on 10 feb and one on 12 feb , Now comes the tricky part I need only the response i.e on 12feb i.e. it maybe true or false).. Please help me how to sort some 4000 records in excel sheet?