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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Augustuspablo
New Member

promedio de las mejores notas

Hola a todos, me pueden ayudar.....

Tengo una persona con 4 notas (4,2 - 3,7 - 5,5 - 6,8 ) y quiero sacar un promedio solo considerando las 3 mejores notas (4,2 - 5,5 - 6,8) que tiene dejando de lado la nota 3,7 por ser la menor. Que funcion podria servir? . gracias

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

Hi @Augustuspablo ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1663307157212.png

Please try:

 

Measure = 
var _a = ADDCOLUMNS('Table',"Rank",RANKX('Table',[Column1]))
return AVERAGEX(FILTER(_a,[Rank]<=3),[Column1])

 

Final output:

vjianbolimsft_1-1663307201304.png

Best Regards,

Jianbo Li

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

View solution in original post

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @Augustuspablo ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1663307157212.png

Please try:

 

Measure = 
var _a = ADDCOLUMNS('Table',"Rank",RANKX('Table',[Column1]))
return AVERAGEX(FILTER(_a,[Rank]<=3),[Column1])

 

Final output:

vjianbolimsft_1-1663307201304.png

Best Regards,

Jianbo Li

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.