The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Buen dia expertos.
Quiero crear una metrica en BI que cuente los pedidos de compra mayores a X valor, supongamos $500.000.
La tabla es algo asi:
PEDIDO DE COMPRA | ARTICULO | IMPORTE |
1 | A | 108.000,00 |
1 | B | 270.000,00 |
2 | C | 395.000,00 |
2 | D | 132.000,00 |
3 | A | 588.000,00 |
3 | B | 108.000,00 |
4 | C | 390.000,00 |
5 | D | 390.000,00 |
El resultado esperado en este caso es 2, correspondientes a los pedidos de compra numero 2 y 3.
Muchas gracias!
Excelente! Funcionó.
Mil gracias.
medida =
var _purchase = calculate(Sum(Table[MATTER]), filter(allselected(Table), Table[PURCHASE ORDER] = max(Table[PURCHASE ORDER]))
devolución
sumx(filter(values(Table[PEDIDO DE COMPRA]), _purchase >50000), calculate(Sum(Table[MATTER])) )
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.