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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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