Forum Discussion
date intelligence
Hello All,
Thanks for the great support from the community.As a beginner im very thankful to this .
Once again needed a help from here.
i have a data like this:
| Project | employee | work date | billing rate | cost rate | hours |
| php | ashik | 04/01/2021 | 10 | 20 | 2 |
| php | ashik | 05/01/2021 | 10 | 20 | 3 |
| php | ashik | 06/01/2021 | 10 | 20 | 2 |
| java | amit | 04/01/2021 | 14 | 15 | 3 |
| java | amit | 04/01/2021 | 14 | 15 | 2 |
| java | amit | 04/01/2021 | 14 | 15 | 1 |
| php | rahul | 04/01/2021 | 12 | 20 | 2 |
| php | rahul | 05/01/2021 | 12 | 20 | 3 |
My data is like that .We have more than 100 employees and diffrent project details.
what i want is something like that.
| Project | employee | start date | end date | bill rate | hours |
| php | ashik | 04/01/2021 | 06/01/2021 | 10 | 7 |
| php | rahul | 04/01/2021 | 05/01/2021 | 12 | 5 |
| java | amit | 04/01/2021 | 06/01/2021 | 14 | 6 |
Please help me to resolve it
Hi ashikts ,
Create 2 measures as below:
_Start date = CALCULATE(MIN('Table'[work date]),FILTER(ALL('Table'),'Table'[employee]=MAX('Table'[employee])&&'Table'[Project]=MAX('Table'[Project])))_End date = CALCULATE(MAX('Table'[work date]),FILTER(ALL('Table'),'Table'[employee]=MAX('Table'[employee])&&'Table'[Project]=MAX('Table'[Project])))And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
6 Replies
- PC2790Community Champion
Hi ashikts ,
You can create a new DAX table using the below formula:
TableGrouped = SUMMARIZE ( ALL(ProjectTable[Project],ProjectTable[employee],ProjectTable[work date],ProjectTable[work date],ProjectTable[billing rate],ProjectTable[hours]), ProjectTable[Project],ProjectTable[employee], "Start Date",MIN(ProjectTable[work date]), "End Date",MAX(ProjectTable[work date]), "Count", SUM(ProjectTable[hours] ) )The result looks like this:
Please provide a Kudos to this answer if you found it interesting.
If it helps to solve your query, please mark it as a solution for others to quickly find it.
- v-kelly-msftCommunity Support
Hi ashikts ,
Create 2 measures as below:
_Start date = CALCULATE(MIN('Table'[work date]),FILTER(ALL('Table'),'Table'[employee]=MAX('Table'[employee])&&'Table'[Project]=MAX('Table'[Project])))_End date = CALCULATE(MAX('Table'[work date]),FILTER(ALL('Table'),'Table'[employee]=MAX('Table'[employee])&&'Table'[Project]=MAX('Table'[Project])))And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!