Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hola, chicos. Estoy intentando hacer una medida de dax que devuelva el valor de ventas de los productos que están en el rango de antigüedad "De 91 a 120 días", es decir, el valor de venta de los productos que tienen la fecha más reciente en la tabla fInventario con fInventario[Rango de envejecimiento] = "De 91 a 120 días". En la imagen de abajo tengo lo más cerca que pude llegar al resultado esperado. Pude devolver los productos deseados y el valor de venta, pero los totales son diferentes. ¿Alguien puede ayudarme?
Mi medida:
Resultado esperado:
PBIX está disponible en:
https://drive.google.com/drive/folders/1LwzYKVU4xDD5KfXCiLVN_c70LT6xG3bc?usp=sharing
@gelsonwirtijr , Intente usar
SalesValueAgingRange =
VAR FechaRecienteMaíz =
CALCULAR(
MAX(fInventario[Fecha]),
ALLEXCEPT(fInventario, fInventario[ProductId])
)
Verificación VARVenvejecido =
CALCULAR(
COUNTROWS(fInventario),
FILTRO(
fInventario,
fInventario[Fecha] = FechaRecienteMaíz &&
fInventario[Rango de envejecimiento] = "De 91 a 120 dias" &&
[Valor estoque atual] > 0
),
ALLEXCEPT(fInventario, fInventario[ProductId])
)
Valor de ventas de VAR =
IF(VerifyAging > 0, [Vendas brutas], BLANK())
DEVOLUCIÓN
SUMX(
VALUES(fInventory[ProductId]),
Valor de ventas
)
No funcionó
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.