I'm trying to get the rank of each transaction line depending of a date and put the information in a custom transaction line field.
As for example :
Line
expectedreceiptdate
customfield rank
1
01/02/22
2
2
01/02/22
2
3
01/01/22
1
Is it possible to do it with a workflow or a custom field formula with something like RANK() OVER (PARTITION by {expectedreceiptdate} ORDER BY {item}) ?
the result i get for the moment is rank : 1 for all lines even if each line have a different {expectedreceiptdate}.
Thanks for your help,
Related
I'm trying to get a system set up on a data compilation sheet in excel. Going in and adding all the new information, and then deleting the old information has become extraordinarily tedious. I'll type out what I'm trying to accomplish, as an example.
A
B
C
Name
Date
Desired AutoNumber
Item 1
01/17/23
1
Item 1
01/17/23
1
Item 1
01/17/23
1
Item 1
01/06/23
2
Item 1
01/02/23
3
Item 1
01/02/23
3
Item 2
01/17/23
1
Item 2
12/24/22
2
Item 2
12/16/22
3
Item 2
11/18/22
4
Item 3
01/16/23
1
Item 3
01/16/23
1
Item 3
01/13/23
2
Item 3
01/11/22
3
Item 3
01/08/23
4
Item 3
12/26/22
5
Item 3
12/26/22
5
Wanting to use this format, as the most recent 5-7 dates per item are needed to remain. (This is for an online games' external assistant system)
What I've found either only numbers the rows based on item name, or based on the dates per item name, which isn't what I'm trying to make happen. What I've used so far is:
=countif($A$2:A2,A2) (which numbers based on item name) or
=countifs($A$2:A2,A2, $C$2:C2, C2) (which numbers based on the dates per item name, which is closer to what I'm looking for, but not in the right format)
By also adding in offset, it does the same thing.
=countif(offset($A$2:A2,0,0),A2)
I'm not sure if there's even a way to number it the way I'm looking to, since it's not numbering within a specified date parameter. I've been trying to do this without using a macro, since the information is going into a larger database, and certain information can't be deleted. Is there a way to do this using a formula?
Not sure if it is possible but I'd like to have a pivot table that summarizes how many occasions properties have been missed, and then shows the number of times properties have been missed that many times.
What I'm looking to end up with is something like the below:
TIMES MISSED PROPERTIES MISSED THAT AMOUNT OF TIMES
1 102
2 76
3 23
4 11
5 2
Information is currently in the following format:
UPRN DATE MISSED
1029292 1/1/2020
1029292 5/6/2020
1010101 1/2/2020
1046353 4/3/2020
3894387 8/2/2020
3894387 7/2/2020
3894387 9/2/2020
So this would give the following table:
TIMES MISSED PROPERTIES MISSED THAT AMOUNT OF TIMES
1 2
2 1
3 1
Is this possible? And if so, how?
Pivot tables in Excel can summarize data not only with SUM function, but also with COUNT and other functions.
Right-click a field in the "Sum values" field chooser and then select Value Field Settings... From there you can choose the function to summarize your data (COUNT in your case).
Good evening all!!
Here's a fun one. I've been pouring through some other posts and it feels like there are many permutations of this scenario but none that span tables, so I'm looking for some input.
Consider the following:
Table A has two fields: ID and TYPE. TYPE will be our value to populate.
ID Type
1
2
3
Table B has two fields: ASSOCIATED ID and HOURS.
Associated ID Hours
1 24
1 0
2 10
2 38
3 50
3 25
The requirement is to return a value of "LESS THAN 25" or "GREATER THAN 25" for TYPE in TABLE A based on the SUM of the HOURS in TABLE B for the ASSOCIATED ID. Ex: ASSOCIATED ID "1" in TABLE has value 24 and 0 for a sum of 24, returning "LESS THAN 25" for TYPE in item ID 1 in TABLE A.
Any and all suggestions will be attempted, thank you so much to the community for taking a look.
Make sure you have a relationship between the two tables by using the ID. Then enter this formula into a column in the ID table:
Type:=if(calculate(sum(TableB[Hours]))>25,"25 or More","Less than 25")
Try this one on 1-TYPE: (I am considering A1 Cell as the beginning of your table for both table, just place the real position)
=IF(SUMIF(TableB!$A$2:$A$7,"="&A2,TableB!$B$2:$B$7)>=25,"GREATER THAN 25","LESS THAN 25")
Then drag it down.
I am having tough time building a logic around this problem for a while , Hope some one can help.
I have 3 column of data. Lets call them Customer ID , Call ID , Agent ID
Customer ID and Agent ID can have repetition however Call ID is unique .
Now i have a table with these columns- they are stacked in chronological order based on date or time. Also one customer can call multiple time to multiple agent generating unique caller ID every time.
Here i want to count number of time one customer has called after certain agent ID has received the call. So count or freq function will have to have a rule embedded in chronological function or "Count after certain rule has been met"
Below is the table
CusID CalID Agent
1 123 a
1 22 b
1 112 a
1 222 a
1 54 a
1 334 a
2 221 a
2 312 b
2 334 b
2 129 b
2 986 a
4 98 b
In above table i want to calculate number of observation for customer id '1'after he has called to agent 'b' so the answer will be 4. I have used couple of unique count based no multiple crietria using combination of sumif 1/countif however major problem is counting after certain observation.
can any one help
You can use this formula that will change the range to count to match where b is found the first time.
=COUNTIF(INDEX(A:A,AGGREGATE(15,6,ROW($C$2:$C$13)/(($C$2:$C$13=E3)*($A$2:$A$13=E2)),1)+1):$A$13,E2)
All data are coming from one table. Date is based on the creation_date field of the table. I would like to create a report similar to the example below:
No. Prior to No. On
10/01/2015 10/1/2015 Total No.
a 5 1 6
b 10 3 13
c 1 0 1
I could not figure out how to display the combine results on the same "Report Page". I have to create 2 report pages one is for the prior date and the other is for the date "on".
Ok. If I understand your data correctly do this.
In your report create query with query items:
Type (a,b,c etc)
[No. Prior to 10/01/2015] with Aggregate Function = 'Total' and with expression
case when creation_date < to_date('10/01/2015', 'DD/MM/YYYY')
then 1 else 0 end
[No. On 10/1/2015] with Aggregate Function = 'Total' and expression
case when creation_date >= to_date('10/01/2015', 'DD/MM/YYYY')
then 1 else 0 end
[Total No.] with expression
[No. Prior to 10/01/2015] + [No. On 10/1/2015]
And create simple table with this values.
Or you can try to do it with crosstab.