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
Anonymous
Not applicable

Based on the slicer, calculate rank on the fly and then summarise the data for rank= 1

Hi team,

 

I have already calculated rank on the fly, unfortunately, I couldn’t able to find the average of the data for rank =1

 

I wanted to group by section and find average of value for rank =1

 

please seee attached screenshot with highlighted : 

 

For the chosen participant from the slicer the average should be 7 instead of 6.

 

But I am getting average as 6..

 

 I would really appreciate if you could help me on this..

 

 

 

large.png

I have used this measure:

 

Average Value =
CALCULATE (
    AVERAGE ( Query2[Value] ),
    FILTER ( VALUES ( Query2[Participant] ), [Rank] = 1 )
)

 

Thanks 

1 REPLY 1
v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous,

 

Not sure if the Rank is a column or a measure. You can try measure below: 

 

Avg = CALCULATE(AVERAGE(Table2[Value]),FILTER(ALLSELECTED('Table2'),'Table2'[Rank]=1))

 

Best Regards,
Qiuyun Yu 

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

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.