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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

porcentaje de trabajo para el día anterior

Hola

Soy nuevo en Power Bi y tengo un problema con un cálculo que estoy tratando de hacer.

Al final de un turno, el líder del equipo rellena un formulario de MS que he creado. Tenemos un turno de día y un turno de noche. Cuando los datos se transfieren a Power Bi, tengo dos filas de datos para ese día (turnos de día y de noche).

Estoy tratando de conseguir power bi para agregar las dos filas de "A domes" juntos y luego dividirlas por las dos filas "Domes Passed" para darme el porcentaje de "A domes" que han pasado desde el día anterior.

Así que en la tabla siguiente me gustaría que power bi añadiéndoa los datos del 29 de junio de 2020 de esta manera;

Unas cúpulas 83 + 104 x 87

Cúpulas pasadas 142 + 201 a 343

por lo que el cálculo sería 87/201*100 a 43,28%

Capture.PNG

Espero que tenga sentido.

Gracias

Graham

2 REPLIES 2
DataInsights
Super User
Super User

Hola Graham,

Prueba esto:

Un % de Cúpulas Pasado ?
Numerador de VAR (VAR Numerator)
SUM ( ShiftData[A Domes] )
Denominador de VAR (VAR Denominator)
SUM ( ShiftData[Domes Passed] )
Resultado de VAR (VAR)
DIVIDE ( Numerador, Denominador )
devolución
Resultado
---
Utilice esta medida en una matriz con Date como filas o columnas.
Hay un error en su cálculo: 83 + 104 a 187.
Espero que esto ayude.




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

Proud to be a Super User!




AllisonKennedy
Community Champion
Community Champion

¿Puedes revisar tus matemáticas y explicarte de nuevo? 83+104 a 187 (tienes 87) y ¿por qué estamos dividiendo por 201 (no 343)? ¿Siempre buscamos el turno De las Noches?

¿Tiene una tabla DimDate? https://allisonkennedycv.blogspot.com/2020/04/dimdate-what-why-and-how.html

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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