cancel
Showing results for 
Search instead for 
Did you mean: 
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.

View solution in original post

Greg_Deckler
Super User IV
Super User IV

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!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors