Forum Discussion
Anonymous
6 years agoNot applicable
Summary table based on activity logs
Hi everyone, I'm hoping someone can assist with a query. I have two tables with lots of data - 1 million+ lines in each one. Table 1 Each line in this table shows a ticket ID (RefNum) and t...
- Anonymous6 years ago
Hi Anonymous,
You can try to add a new calculated table to get your expected result.
Table 2 = ADDCOLUMNS ( DISTINCT ( 'RefNum'[RefNum] ), "Group Expired", VAR t = FILTER ( 'RefNum', 'RefNum'[RefNum] = EARLIER ( [RefNum] ) && TRIM ( 'RefNum'[Transferred From] ) <> "" && TRIM ( 'RefNum'[Transferred To] ) <> "" ) RETURN IF ( COUNTROWS ( t ) = 0, MAXX ( FILTER ( 'Table1', 'Table1'[RefNum] = EARLIER ( [RefNum] ) ), [AssignedGroup] ), MAXX ( FILTER ( t, 'RefNum'[Transferred To] = MAXX ( FILTER ( 'Table1', 'Table1'[RefNum] = EARLIER ( [RefNum] ) ), [AssignedGroup] ) ), [Transferred From] ) ) )Best Regards,
Jack Chen
Anonymous
6 years agoNot applicable
Hi Anonymous ,
Please clarify the following:
In the case where ActivityType Event Logged and Group Transferred have the exact same value for DateActivityCreated, how can you differentiate which activity was done last?
For example below,
| 1290806 | Group Transferred | Global Delivery | Desktop | 7/02/2019 14:06 |
| 1290806 | Event Logged | 7/02/2019 14:06 |
Any chance you can format your DateActivityCreated column to show the seconds as well?
Cheers,
Robin