=FILTRAR(A2:D200, D2:D200 > PROMEDIO(D2:D200))
=ORDENAR( HSTACK(A2:A200, D2:D200), 2, FALSE )
=TAKE(ORDENAR(A2:D200, 4, FALSE), 5)
=UNIQUE(CHOOSECOLS(A2:D500, 2))Luego sumar:
=MAP( UNIQUE(B2:B500), LAMBDA(c, SUMAR.SI(B2:B500, c, D2:D500)) )
=FILTRAR(A2:D200, CONTAR.SI(A2:A200, A2:A200) > 1)
=LAMBDA(c, K.ESIMO.MAYOR(FILTRAR(D2:D200, B2:B200=c), 2) )
=XLOOKUP(D1, C2:C200, A2:A200)
=TEXTJOIN(" | ", TRUE, A2, B2, C2)
=LET( costo, B2, venta, C2, (venta - costo) / venta )
=LAMBDA(txt, LIMPIAR(SUSTITUIR(txt, " ", "")))
=LAMBDA(rango, criterio, SUMA(FILTRAR(rango, rango > criterio)) )
=LET( valor, C2:C200, tasa, 925, MAP(valor, LAMBDA(x, x*tasa)) )
=TIR.NO.LINEAL(A2:A60, B2:B60)
=LET( n, 360, tasa, 0.015/12, monto, 15000000, pago, PAGO(tasa, n, -monto), SEQUENCE(n,1,1,1)*0 + pago )
=MAP(D2:D200, LAMBDA(x, (x - OFFSET(x,-12,0))/OFFSET(x,-12,0)))
=LET( base, D2:D200, growth, 1.08, MAP(base, LAMBDA(x, x*growth)) )
= Folder.Files("C:\\Ventas")
|> Table.Combine
|> Table.TransformColumnTypes(...)
= Table.NestedJoin(
Table.UnpivotOtherColumns(Source, {"Producto"}, "Mes", "Valor"),
"Producto",
Productos,
"ID",
"Detalle",
JoinKind.LeftOuter
)
= Table.AddColumn(Source, "Estado",
each if [Monto] > 5000 then "Premium"
else if [Monto] > 2000 then "Normal"
else "Bajo"
)
= Table.AddColumn(Source, "Año Fiscal",
each if Date.Month([Fecha])>=7
then Date.Year([Fecha])+1
else Date.Year([Fecha])
)
Elementos usados: - FILTRAR - ORDENAR - SEQUENCE - SUMAR.SI.CONJUNTO - TAKE / DROP - Controladores dinámicos con VALIDACIÓN DE DATOS
Acciones: - Formato condicional con fórmula: =C2 <= D2 - Lista de reposición: =FILTRAR(A2:D200, C2:C200 <= D2:D200)
=LET( salario, C2, hsExtra, D2*1.5, bono, SI(E2="A", 15000, 0), salario + hsExtra + bono )
=LAMBDA(costo, margen,
LET(
precio, costo*(1+margen),
redondeo, REDONDEAR(precio, -2),
redondeo
)
)