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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Tom216
Frequent Visitor

Medida Delta basada en selecciones de segmentación en Matrix Table

Hola

Tengo un problema en Power BI que no puedo resolver y tal vez uno de ustedes pueda.

Estoy intentando encontrar la diferencia entre dos columnas en una tabla de matriz. Las columnas se basan en una segmentación de datos (fecha de instantánea). Quiero que esto sea dinámico para que si el usuario selecciona dos fechas de instantánea diferentes en la segmentación de datos, la tabla de matriz mostrará la diferencia entre estas fechas recién seleccionadas. Así que para resumir:

Medida Delta que muestra la diferencia entre dos fechas de instantánea seleccionadas.

Capture.JPG

¿Alguna idea?

Gracias

1 ACCEPTED SOLUTION

@amitchandak , Gracias por su respuesta.

Probé tu solución y no funcionó como quería. Encontré otro post que funcionó para mí que se puede encontrar aquí: https://community.powerbi.com/t5/Desktop/Difference-between-two-columns-or-rows/td-p/188185

Gracias de nuevo.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Tom216 , Una medida como esta debería ayudar

Medida ?
var _max á maxx(allselected('Date'),'Date'[Date])
var _min á minx(allselected('Fecha'),'Fecha'[Fecha])
devolución
calculate(sum(table[tons]),filter(All(DATE), Date[Date] -_max)) - calculate(sum(table[tons]),filter(All(DATE), Date[Date] -_min))

Medida ?
var _max á maxx(allselected('Date'),'Date'[Date])
var _min á minx(allselected('Fecha'),'Fecha'[Fecha])
devolución
calculate(sum(table[tons]),filter(Allselected(DATE), Date[Date] -_max)) - calculate(sum(table[tons]),filter(Allselected(DATE), Date[Date] -_min))

No hay nada de diferencia de columna o fila. Necesitas tener medidas diff

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak , Gracias por su respuesta.

Probé tu solución y no funcionó como quería. Encontré otro post que funcionó para mí que se puede encontrar aquí: https://community.powerbi.com/t5/Desktop/Difference-between-two-columns-or-rows/td-p/188185

Gracias de nuevo.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Kudoed Authors