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 Comunidad,
Me gustaría transformar mi conjunto de datos como se muestra en la imagen de abajo.
Ejemplo
¿Alguien podría ayudar?
Muchas gracias de antemano!
Solved! Go to Solution.
Hola @PSch_92
Cree una tabla de empleados sin ninguna relación con la tabla.
employee table = VALUES('Table 2'[Employee])
Crear medidas
selected = CONCATENATEX(ALLSELECTED('employee table'),'employee table'[Employee],",")
filtered = FIND(MAX('Table 2'[Employee]),[selected],1,0)
total_hours = var sums=CALCULATE(SUM('Table 2'[Hours]),FILTER(ALLSELECTED('Table 2'),'Table 2'[Client]=MAX('Table 2'[Client]))) return IF([filtered]=1,sums)
col_emp = var con=CONCATENATEX(FILTER(ALLSELECTED('Table 2'),'Table 2'[Client]=MAX('Table 2'[Client])),[Employee],",") return IF([filtered]=1,con)
Saludos
Maggie
Equipo de apoyo a la comunidad _ Maggie Li
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Hola @PSch_92
Cree una tabla de empleados sin ninguna relación con la tabla.
employee table = VALUES('Table 2'[Employee])
Crear medidas
selected = CONCATENATEX(ALLSELECTED('employee table'),'employee table'[Employee],",")
filtered = FIND(MAX('Table 2'[Employee]),[selected],1,0)
total_hours = var sums=CALCULATE(SUM('Table 2'[Hours]),FILTER(ALLSELECTED('Table 2'),'Table 2'[Client]=MAX('Table 2'[Client]))) return IF([filtered]=1,sums)
col_emp = var con=CONCATENATEX(FILTER(ALLSELECTED('Table 2'),'Table 2'[Client]=MAX('Table 2'[Client])),[Employee],",") return IF([filtered]=1,con)
Saludos
Maggie
Equipo de apoyo a la comunidad _ Maggie Li
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
@PSch_92, horas que puede sumar
para el empleado que puede utilizar
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax
concatenatex(Table,Table[employee])
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.