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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Syndicate_Admin
Administrator
Administrator

Falta la columna Total general en la tabla de matriz

Hola a todos

Tengo un problema con mi Matrix Visual o probablemente con la medida que estoy usando. Después de mucho tiempo, finalmente logré que me mostrara los valores correctos en el contexto. Sin embargo, ahora me falta la columna del total general. Las empresas están en la fila de encabezado y las claves de la historia están en la columna de encabezado.

Bild1.png

--------------------------------------------------------------------------------------------------------------------

2Valor entregado =
FUERON PrecioPorHistoria = SELECTEDVALUE('JiraExport_Sprints_SharepointFolder'[precio de la historia])
FUERON CurrentSprint = SELECTEDVALUE('JiraExport_Sprints_SharepointFolder' [comenzó en sprint])
FUERON Equipo actual = SELECTEDVALUE('JiraExport_Sprints_SharepointFolder'[TeamID])
FUERON Empresa actual = SELECTEDVALUE('Compañías'[CompanyID])
FUERON RollingTotalPercentage =
CALCULAR(
SUMX('Total acumulado', 'Total acumulado'[Total móvil (%)]),
FILTRO(
TODO(«Total acumulado»),
'Total acumulado'[Sprintnumber] = CurrentSprint &&
'Total acumulado'[TeamID] =CurrentTeam &&
'Total acumulado'[CompanyID] = CurrentCompany
)
)
DEVOLUCIÓN
PricePerStory * RollingTotalPercentage
-----------------------------------------------------------------------------------------------------------
El total acumulado (%) es una columna calculada con la siguiente fórmula:

Total acumulado (%) =
FUERON CurrentSprint (Sprint actual) = 'Total acumulado'[Número de sprint]
FUERON Empresa actual = 'Total acumulado'[CompanyID]
FUERON Equipo actual = 'Total acumulado'[ID de equipo]
FUERON FilteredTable (Tabla filtrada) =
FILTRO(
'Total acumulado',
'Total acumulado'[ID de equipo] = Equipo actual &&
'Total acumulado'[Número de sprint] = CurrentSprint (Sprint actual)

)
DEVOLUCIÓN
DIVIDIR(
[Total acumulado (€)],
CALCULAR(
SUMA([Total acumulado (€)]),
FilteredTable (Tabla filtrada)
)
)


¡Soy un principiante en el área de Power BI y agradecería cualquier ayuda!
2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@Alina12 , cuando se usa el contexto de fila es posible que el ttotal general no funcione según lo esperado

Pruebe una medida encima de su medida y utilícela en visual

M2 = sumx(Valores('JiraExport_Sprints_SharepointFolder'[Nombre de la empresa]) , [Total móvil (%)])

o refiérase a

https://www.youtube.com/watch?v=ufHOOLdi_jk

Desafortunadamente, esto no funcionó porque no tengo ningún CompanyNames en la tabla JiraExport_Sprints_SharepointFolder. Para explicarlo: Las historias no se asignan a ninguna empresa y siempre deben distribuirse a todas las empresas a través de la participación porcentual (Total móvil (%)).

De todos modos, el video de Youtube me ayudó mucho y al menos la columna de total general ahora funciona con esta medida:


FINAL_DeliveredValue = IF(HASONEVALUE(Companies[CompanyName]),'KeyMeasures - DeliveredValue'[2Delivered Value],SUMX(Values(Companies[CompanyName]),'KeyMeasures - DeliveredValue'[2Delivered Value]))

Sin embargo, solo funciona la tabla matricial con la columna de total general (al menos un poco). Tan pronto como quiero mostrar el total general de la fila o crear otro objeto visual (por ejemplo, una tabla simple con empresas y valor entregado), no vuelve a funcionar. ¿Qué estoy haciendo mal? ¿Puedo optimizar la medida 2Delivered Value o ahora también la FINAL_DeliveredValue para poder usarla sin problemas y no tener que crear una nueva medida para cada visual?

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.

Top Kudoed Authors