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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.