Forum Discussion
slanka
Helper I
7 years agoFilter Group By in Same table
Friends, I have data in one single table, Table A, in the below format, EmpName ProjName TimesheetDate Emp1 Proj1 1-Jul-19 Emp1 Proj1 2-Jul-19 Emp1 Proj1 3-Jul-19 Emp1 ...
- 7 years ago
Drag EmpName and ProjName on to a table visualisation.
Then drag TimeSheetDate on to the same table twice.
In the Values field well, click the dropdown on the first TimeSheetDate, choose Earliest.
Click the dropdown on the secondTimeSheetDate, choose Latest.
You can change the date format by choosing TimeSheetDate instead of Date Hierarchy from the same dropdown.
Anonymous
7 years agoNot applicable
Hi slanka
Here is my solution
Create 3 new columns:
Column MAX = CALCULATE ( MAX ( T15[TimesheetDate] ), ALLEXCEPT ( T15, T15[EmpName],T15[ProjName] ) )
Column Min = CALCULATE ( MIN( T15[TimesheetDate] ), ALLEXCEPT ( T15, T15[EmpName],T15[ProjName] ) )
NOT Mandatory, just for debugging
MIN_MAX = IF(T15[Column MAX] = T15[TimesheetDate] || T15[Column Min] = T15[TimesheetDate], 1,0)
Create a new table:
T16 = SUMMARIZE(T15,T15[EmpName], T15[ProjName], T15[Column MAX],T15[Column Min])
Good Luck!
A