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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
GrahamP41
New Member

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
Super User
Super User

¿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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors