cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors