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
Arun_BI
Helper I
Helper I

Total Value based on maximum column value instead of sum

I have the following data coming from the below measure which splits the no of weeks based on the project start and end date.

 

Measure:

Actual weekly duration (By Month) = CALCULATE(SUMX(SUMMARIZE(FILTER(CROSSJOIN('FTE','Datetable'),'Datetable'[Date] >=(' FTE'[Start date]) && 'Datetable'[Date]<=('FTE'[End date])),'FTE'[Project Name],Datetable[Date],'FTE'[Actual Project Duration(In weeks)],'FTE'[Start date],'FTE'[End date]),DIVIDE('FTE'[Actual Project Duration(In weeks)],DATEDIFF('FTE'[Start date],'FTE'[End date],DAY)+1)))

 

Output:

Capture.PNG

 

Question: Now my measure sums up the no of weeks (values) for each month for each staff as shown in the above image. Instead of summing up the total, I need to show the maximum value for each month for eg For Anbu for Feb it is 3.91 and March 4.33 and for Apr 4.19 . Any help is much appreciated. 

 

 

 

 

 

1 ACCEPTED SOLUTION
Arun_BI
Helper I
Helper I

Thanks Ashish for the timely help. The measure works perfectly fine. 

View solution in original post

5 REPLIES 5
Arun_BI
Helper I
Helper I

Thanks Ashish for the timely help. The measure works perfectly fine. 

Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish, 

 

Please find the link. Let me know if it doesn't works 

download.png

 

Hi,

Write this measure

 

Measure 2 = MAXX(VALUES('CIC FTE'[Project Name]),[Actual Hours(By Projectname)])

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Arun_BI
Helper I
Helper I

@amitchandak do you know the solution for the problem stated above?

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.