Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ashikts
Helper II
Helper II

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:

Projectemployeework datebilling ratecost ratehours
phpashik04/01/202110202
phpashik05/01/202110203
phpashik06/01/202110202
javaamit04/01/202114153
javaamit04/01/202114152
javaamit04/01/202114151
phprahul04/01/202112202
phprahul05/01/202112203

 My data is like that .We have more than 100 employees and diffrent project details.

what i want is something like that.

 

Projectemployeestart dateend datebill ratehours
phpashik04/01/202106/01/2021107
phprahul04/01/202105/01/2021125
javaamit04/01/202106/01/2021146
      
      
      

 

Please help me to resolve it

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community 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:

v-kelly-msft_0-1610953940667.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

6 REPLIES 6
v-kelly-msft
Community Support
Community 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:

v-kelly-msft_0-1610953940667.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

PC2790
Community Champion
Community 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:

PC2790_0-1610684725208.png

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.

gettting an error "multiple table arguments are not allowed in all functon"

PC2790
Community Champion
Community Champion

It works for me. Are you creating a new DAX table from Table Tools section and using the above mentioned code?

yes ..thats how i did. can you show mw via scrren shot ?

PC2790
Community Champion
Community Champion

Here are the screenshots to help:

PC2790_0-1610690385260.pngPC2790_1-1610690423097.png

 

PC2790_2-1610690453257.png

PC2790_3-1610690470129.png

You can match it with your file and see where it is going wrong.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.