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
masplin
Impactful Individual
Impactful Individual

Measure that only takes the selected value in a row on the matrix

I have a set of data like this

 

 

Capture.PNG

 

I want ot work out the calacuation for al lthe others in peer group vs each user i.e. see how well they are doing against their peers (peers have same job).

 

So for example if i filter out Susan Chohan the restt he calcuation is 0.34

 

I wrote this measure which works perfectly if I only have susan selected

 

 

AVG Calls per Hour In/ User UserJob Peer = 
VAR
Job=TOPN(1,VALUES(CallParticipants[UserRole]),[Call Duration (min)])
RETURN
CALCULATE(  
                                                [AVG Calls per Hour In / User],
                                                EXCEPT(ALL(PhoneUser[Name]), ALLSELECTED(PhoneUser[Name])),
                                                CallParticipants[UserRole]=jOB
                                                )
                                         

 

 

Capture.PNG

 

However what I would really like is to list all of the users and have it calcuate for each row excluding just the name on that row.  If I try this with my formula the answer is blank. Presumably ALLSELECTED takes all the names in the Matrix so the EXCEPT removes all of them and end up with nothing. 

 

If this possible so the EXCEPT clause is something like

 

EXCEPT(ALL(PhoneUser[Name], "SelectedonCurrentRow" (PhoneUser[Name]))

 

I tried SELECTEDVALUE but can't see how to make that work. Thanks for any advice

 

Mike

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @masplin ,

 

Please try

 

Measure = CALCULATE(AVERAGE('Table'[value]),FILTER(ALL('Table'),'Table'[name]<>SELECTEDVALUE('Table'[name])))

 

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

1 REPLY 1
v-jayw-msft
Community Support
Community Support

Hi @masplin ,

 

Please try

 

Measure = CALCULATE(AVERAGE('Table'[value]),FILTER(ALL('Table'),'Table'[name]<>SELECTEDVALUE('Table'[name])))

 

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

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.