Forum Discussion
StuartSmith
2 years agoPower Participant
Get 2nd & 3rd Rows in a column.
I have a table similar to the one below... MasterID AbsenceDate Name AbsenceID 1 24/11/2023 John Doe 511 1 27/11/2023 John Doe 512 1 28/1...
- 2 years ago
hI StuartSmith ,
First create a rank by masterid calculated column:
Absence Date Rank by MasterID = IF ( WEEKDAY ( 'Table'[AbsenceDate], 2 ) <= 5, RANKX ( FILTER ( ALL ( 'Table' ), WEEKDAY ( 'Table'[AbsenceDate], 2 ) <= 5 && 'Table'[MasterID] = EARLIER ( 'Table'[MasterID] ) ), 'Table'[AbsenceDate], , asc, DENSE ) )and then to get the 2nd and 3rd rows
danextian
2 years agoSuper User
hI StuartSmith ,
First create a rank by masterid calculated column:
Absence Date Rank by MasterID =
IF (
WEEKDAY ( 'Table'[AbsenceDate], 2 ) <= 5,
RANKX (
FILTER (
ALL ( 'Table' ),
WEEKDAY ( 'Table'[AbsenceDate], 2 ) <= 5
&& 'Table'[MasterID] = EARLIER ( 'Table'[MasterID] )
),
'Table'[AbsenceDate],
,
asc,
DENSE
)
)
and then to get the 2nd and 3rd rows
- StuartSmith2 years agoPower Participant
Let me test and get back to you. Thanks
- StuartSmith2 years agoPower Participant
Thanks, that worked.