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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
bnevers
Regular Visitor

Aggregating Across Common Values Part II

As a follow up to my previous post on  and building on the file provided by @Ashish_Mathur I have this data table:

image.png

 

Then this measure: Hours spent = SUM(Data[Hours])

 

Which produces this table:

image.png

And then this

Measure = if(VALUES(Staff[Staff])=VALUES(Staff_dup[Staff]),BLANK(),CALCULATE ([Hours spent],CALCULATETABLE(SUMMARIZE(Data,Data[Project]),ALL(Staff),USERELATIONSHIP(Data[Staff],Staff_dup[Staff]))))

 

Which produces this Table:

image.png

 

Now I want to do two things:

1) Establish a minimum threshold of hours worked on a common project for it to count. In the example above, if the min threshold is 3 total horus worked by either individual, then the total hours A-B spent working on Project 1000 would be 0 (A only spent 2 hrs on Project 1000). Therefore the overall total would include only Project 2000 so the overall total for A-B would be 8 and B-A would be 3. 

2) Return a list of Common Projects worked on together between a selected pair of individuals (in the example above it's only Project 2000 with a min threshold of 3 hours ). 

 

Any advice is much appreciated!

 

Heres the file

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

Thank you once again @Ashish_Mathur !

You are welcome.


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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors