Forum Discussion
dostdahl
Helper I
4 years agoHow to show status updates in same row in Table
Hello, I'm running into an issue with capturing a current status/date and a previous status/date and being able to show it in one row in a Table. The dataset has a unique ID associated to eac...
- Anonymous4 years ago
Hi dostdahl ,
I think you can create a measure and add this measure into the visual level filter of this table visual.
Filter = RANKX ( FILTER ( ALL ( 'Table' ), 'Table'[ID] = MAX ( 'Table'[ID] ) ), CALCULATE ( MAX ( 'Table'[Date From] ) ), , DESC, DENSE )Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- 4 years ago
Here is the final updated solution
Previous Status = VAR CurrentIdTable = CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) ) VAR PreviousDatesTable = FILTER ( CurrentIdTable, Table[Date From] < EARLIER ( Table[Date From] ) ) VAR PreviousDate = MAXX ( PreviousDatesTable, Table[Date From] ) VAR PreviousDateRecord = FILTER ( PreviousDatesTable, Table[Date From] = PreviousDate ) RETURN MAXX ( PreviousDateRecord, Table[Status] )Previous Date = VAR CurrentIdTable = CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[ID] ) ) VAR PreviousDatesTable = FILTER ( CurrentIdTable, Table[Date From] < EARLIER ( Table[Date From] ) ) RETURN MAXX ( PreviousDatesTable, Table[Date From]
dostdahl
Helper I
4 years agoI had been creating as a column. The Previous Date column you created seemed to be working great, it was the Previous Status column that was returning blanks.