cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Suma resumida y promedio en la misma columna

Necesito ayuda para resumir mis datos (suma o promedio) basados en otra columna. Por ejemplo, con los datos a continuación, me gustaría promediar el alquiler y margen, pero sumar los ingresos. ¿Es posible hacer esto? Todo está en una columna para poder profundizar en varias categorías con cada métrica única. En esa nota es posible formatear onlu ciertas filas, por ejemplo, si métrica - margen, formatear en %.

Fecha Cantidad métrica
Ingresos de enero
Ingresos de febrero
Alquiler de enero

Alquiler de febrero

Margen de enero

Margen de febrero


Gracias de antemano!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User IV
Super User IV

@ehartanto Claro, algo como:

Total Revenue = SUMX(FILTER('Table',[Metric]="Revenue"),[Amount])

Average Margin = AVERAGEX(FILTER('Table',[Metric]="Margin",[Amount])

---------------------------------------

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




View solution in original post

Super User IV
Super User IV

@ehartanto , En caso de que los desee Unpivot se puede despivot

https://radacad.com/pivot-and-unpivot-with-power-bi

O tener medidas como

Ingresos: calculate(sum(Table[Amount]), filter(Table,Table[Metric] á"Revenue"))
Tasa de alquiler: calculate(sum(Table[Amount]), filter(Table,Table[Metric] á"Tarifa de alquiler"))
Margen: calculate(sum(Table[Amount]), filter(Table,Table[Metric] á"Margin"))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Highlighted
Super User IV
Super User IV

@ehartanto Claro, algo como:

Total Revenue = SUMX(FILTER('Table',[Metric]="Revenue"),[Amount])

Average Margin = AVERAGEX(FILTER('Table',[Metric]="Margin",[Amount])

---------------------------------------

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




View solution in original post

Super User IV
Super User IV

@ehartanto , En caso de que los desee Unpivot se puede despivot

https://radacad.com/pivot-and-unpivot-with-power-bi

O tener medidas como

Ingresos: calculate(sum(Table[Amount]), filter(Table,Table[Metric] á"Revenue"))
Tasa de alquiler: calculate(sum(Table[Amount]), filter(Table,Table[Metric] á"Tarifa de alquiler"))
Margen: calculate(sum(Table[Amount]), filter(Table,Table[Metric] á"Margin"))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors