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
jayjani
Helper I
Helper I

Una medida para promedios a mayor nivel de granularidad

Hola

Compartir una versión simplificada de mi problema.

Quiero calcular una medida Descuento 1 - Rev neto/Rev bruto (ver foto a continuación). Quiero que el promedio de descuentos se calcule en el nivel de categoría (mayor granularidad).

Además, en mi conjunto de datos, tengo numerosas columnas diferentes como Segmento, País, etc. y necesito esas columnas como filtros para trabajar en mi medida % de descuento. ¿Alguien puede ayudar con esto?

He intentado numerosos enfoques usando AverageX pero no he podido encontrar una solución.

image.png

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

Hola @jayjani

Por favor, hágamelo saber si desea llegar por debajo de uno:

Measure = 1-DIVIDE(MAX('Table (3)'[Net Rev]),MAX('Table (3)'[Gross Rev]))
Measure 2 = AVERAGEX(ALLEXCEPT('Table (3)','Table (3)'[Category]),[Measure])

008.PNG

Community Support Team _ Dina Ye
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

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hola @jayjani

Por favor, hágamelo saber si desea llegar por debajo de uno:

Measure = 1-DIVIDE(MAX('Table (3)'[Net Rev]),MAX('Table (3)'[Gross Rev]))
Measure 2 = AVERAGEX(ALLEXCEPT('Table (3)','Table (3)'[Category]),[Measure])

008.PNG

Community Support Team _ Dina Ye
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

Por favor, consulte este post sobre cómo obtener su pregunta respondida rápidamente: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Pero tal vez esto ayuda: MM3TR - https://community.powerbi.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-Rock-amp-...


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

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.

Top Solution Authors