The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone! I have an issue here, i need to have the Total amount per colaborador in this table by adding the "Total a Liquidar" Measure in the Name of the colaborador Row. I dont know how can i do this, i am attaching the pbi file, every clue is gonna be positive, thank you everyone!
Solved! Go to Solution.
Hi @feralvarez994
Here is the file with the subtotals fixed. https://www.dropbox.com/t/NTV8GLQ1SWEC4Hm1
A Liquidar =
SUMX (
SUMMARIZE ( REPUESTOS, REPUESTOS[Atributo], REPUESTOS[COLABORADOR] ),
CALCULATE (
SWITCH(TRUE(),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Bruto", CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Bruto"),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Adicional por Unidades sin daños",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Adicional por Unidades sin daños"),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Por mant. y mec. Flota De logistica",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Por mant. y mec. Flota De logistica"),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Adicional Compra Rep. GM",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Adicional Compra Rep. GM"),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Horas Extras",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Horas Extras"),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Fact. Rep. Clientes Totales (sin Uspallata)",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Fact. Rep. Clientes Totales (sin Uspallata)") * [_Facturado sin Usp],
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Fact. Repuestos Clientes Uspallata",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Fact. Repuestos Clientes Uspallata") * [_Facturado Uspallata] ,
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Fact. Rep. Talleres Totales (sin Uspallata)",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Fact. Rep. Talleres Totales (sin Uspallata)") * [_Facturado Sv s/ Usp] ,
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Fact. Rep. Talleres Uspallata",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Fact. Rep. Talleres Uspallata") * [_Facturado Sv Usp]
)
)
)
Hi @feralvarez994
Here is the file with the subtotals fixed. https://www.dropbox.com/t/NTV8GLQ1SWEC4Hm1
A Liquidar =
SUMX (
SUMMARIZE ( REPUESTOS, REPUESTOS[Atributo], REPUESTOS[COLABORADOR] ),
CALCULATE (
SWITCH(TRUE(),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Bruto", CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Bruto"),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Adicional por Unidades sin daños",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Adicional por Unidades sin daños"),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Por mant. y mec. Flota De logistica",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Por mant. y mec. Flota De logistica"),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Adicional Compra Rep. GM",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Adicional Compra Rep. GM"),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Horas Extras",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Horas Extras"),
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Fact. Rep. Clientes Totales (sin Uspallata)",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Fact. Rep. Clientes Totales (sin Uspallata)") * [_Facturado sin Usp],
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Fact. Repuestos Clientes Uspallata",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Fact. Repuestos Clientes Uspallata") * [_Facturado Uspallata] ,
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Fact. Rep. Talleres Totales (sin Uspallata)",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Fact. Rep. Talleres Totales (sin Uspallata)") * [_Facturado Sv s/ Usp] ,
SELECTEDVALUE(REPUESTOS[Atributo], 0) = "Fact. Rep. Talleres Uspallata",
CALCULATE(SUM(REPUESTOS[Valor]),REPUESTOS[Atributo] = "Fact. Rep. Talleres Uspallata") * [_Facturado Sv Usp]
)
)
)
User | Count |
---|---|
74 | |
70 | |
39 | |
30 | |
28 |
User | Count |
---|---|
104 | |
95 | |
51 | |
48 | |
46 |