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

Intentar replicar un total en una medida

Estoy tratando de crear una medida que replique el valor total en esta tabla:

PUG_0-1596562917772.png


El total fluctúa a medida que se aplican los filtros y necesitaría la medida para hacer lo mismo. En última instancia, usaré la medida para calcular un valor de "Porcentaje de estudiantes inscritos en los 10 mejores programas".

Por ejemplo:
1.219 (Suma de la Medida de Inscripción del Programa Top 10) / 2000 (Total de Estudiantes) - 61%

¡Gracias de antemano!

4 REPLIES 4
Anonymous
Not applicable

He resuelto esto, gracias por la aportación. Las dos medidas necesarias:

Total del programa Top10 ?
var A á SUMMARIZE('TE',[program],"Enrollment",SUM('TE'[
student_flag]))

var Top10 - TOPN(10,A,[Inscripción],DESC)
devolución
SUMX(Top10,[Inscripción])

T10P % de TE - [T10P Total]/[Total de estudiantes distintos]

v-xuding-msft
Community Support
Community Support

Hola @PUG ,

Podrías intentarlo así:

Measure 2 = 
var total = SUMX(ALLSELECTED('Table'[Program]), [Measure])
return
DIVIDE(total,2000)

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

@PUG Esto parece un problema de totales de medida. Muy común. Vea mi post al respecto aquí: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Además, esta Medida Rápida, Medir Totales, La Palabra Final debe obtener lo que necesita:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@PUG, TOPN es una opción otra opción es Rank

Ejemplo

Top 10 Rango de ciudad : CALCULATE([Sales],TOPN(10,all(Geography[City]),[Sales],DESC),VALUES(Geography[City Id]))

Para GT

Suma(Tabla[estudiante total])

O

calculate(Sum(Table[total student]) , allselected(Table))

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.