Forum Discussion
Anonymous
7 years agoNot applicable
Add a sequence number by ID and date/time
I have a table with an alphanumeric ID field and a modified date & time field. I need another column that assigns a sequence numer by ID and date/time. So this: ID Modified Date INC00000...
- Anonymous7 years ago
Can add this as a calculated column:
Sequence = VAR CurrentID= Table1[ID] VAR CurrentDate = Table1[Modified Date] RETURN CALCULATE( COUNTROWS( Table1 ), FILTER ( ALL( Table1 ), CurrentID = Table1[ID] && CurrentDate >= Table1[Modified Date] ) )
Anonymous
7 years agoNot applicable
Can add this as a calculated column:
Sequence =
VAR CurrentID= Table1[ID]
VAR CurrentDate = Table1[Modified Date]
RETURN
CALCULATE(
COUNTROWS( Table1 ),
FILTER (
ALL( Table1 ),
CurrentID = Table1[ID]
&& CurrentDate >= Table1[Modified Date]
)
)
- Anonymous7 years agoNot applicable
Works perfect, thanks!
- Anonymous6 years agoNot applicable
Anonymous is there a way to allow duplicate numbers in the sequence? I have a table with multiple rows for the same ID and date and want these to have the same sequence value.
Thanks