This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hola a todos,
Sigue siendo nuevo en Power BI, así que discúlpate si lo que te pido es muy fácil.
Estamos comparando las horas del período actual trabajadas con las horas del período anterior trabajadas por empleado. Cada empleado tiene un gerente, un director y un vicepresidente. Tengo medidas para preparar ese trabajo. Están abajo. Tengo un filtro en la página para el mes calendario anterior que llamamos al período actual (no en código, no sé si eso importa) para mostrar solo aquellos donde el cambio de porcentaje es 10% o más.
Lo que quiero es un recuento de casos que cumplan esa condición (> 10%). Por lo tanto, para los datos de ejemplo limitados a continuación, donde VP-VP1 el recuento total sería 2. Cuenta para el Director1 n.o 2. Cuente para Manager1 y 3 a 1 cada uno, pero cuente para Manager2 a 0. Esto es para un gráfico que muestra los recuentos en cada nivel; Vicepresidente, Director, Gerente, etc. y Drillable.
Estoy seguro de que la forma en que mi instinto me dice que vaya está mal , que es marcar una condición cumplida como 1 y no cumplida como 0 y luego sumar los valores de la bandera.
Cualquier ayuda en cómo debería REALMENTE hacer esto sería muy apreciado.
Gracias
Kirt
----------------
Período actual de las horas de OT : SUM(TIMECHARGE[Horas])
Período anterior Ot Horas : CALCULATE([Current Period OT Hours], DATEADD(DateTable[Date],-1,MONTH))
Cambio de porcentaje: DIVIDE([OT Hours Change],[Previous Period OT Hours],BLANK())
| Vp | Director | director | Empleado | HORAS DEL PERÍODO ACTUAL | HORAS DEL PERÍODO ANTERIOR | CAMBIO PORCENTUAL | INCLUIR EN EL RECUENTO |
| VP1 | Director1 | Gerente1 | Empleado1 | 50 | 40 | 25% | 1 |
| VP1 | Director1 | Gerente1 | Empleado2 | 30 | 40 | -25% | 0 |
| VP1 | Director1 | Gerente2 | Empleado3 | 42 | 40 | 5% | 0 |
| VP1 | Director1 | Gerente3 | Empleado4 | 44 | 40 | 10% | 1 |
| VP1 | Director2 | Gerente4 | Empleado5 | ....... | |||
| ....... |
Solved! Go to Solution.
@Kirt1965 probar esta medida para el recuento
Count over 10 Percent =
COUNTX ( VALUES ( Table[Employee] ), IF ( [% Change Measure] >= .10, 1 ) )
Me gustaría❤ elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
⚡Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Kirt1965 probar esta medida para el recuento
Count over 10 Percent =
COUNTX ( VALUES ( Table[Employee] ), IF ( [% Change Measure] >= .10, 1 ) )
Me gustaría❤ elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
⚡Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Gracias por la ayuda. Tuve que jugar con lo que poner en para Table[Employee], pero parece que está funcionando ahora. Te lo agradezco.
Kirt
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.