March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Buen día,
Necesito ayuda, estoy intentando calcular la cobertura de inventario dado una clasificación, pero esta no me permite:
Código DAX:
Solved! Go to Solution.
Hi @Alejandro9805 ,
On my test, The measure seems no problem:
In order to better understanding your demands and give the right solution, could you please share with me some screenshots of your data after hiding sensitive information and tell me what's your expected output?
Thanks for your efforts & time in advance.
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Alejandro9805 , try like
Coverage by Style = CALCULATE(DIVIDE([Available Quantity],[Average Sales],
FILTER('Inventory without location','Inventory without location'[STYLE] in {"Accessories","Wheels and Tires","Batteries","Light Bulbs"})))
Sorry for the last comment
I noticed the error about the "in" by not closing the {}, when I close it I get this new error.
DAX code:
Coverage by style = CALCULATE(DIVIDE([Quantity on hand],[Average sales],
FILTER('Inventory without location','Inventory without location'[STYLE] in {"Accessories", "Batteries", "Bulbs", "Spark Plugs", "Chains & Links", "Helmets & Helmet Rptos", "Tires & Tires", "Lubricants", "Tires", "Complementary Products", "Original Spare Parts", "Bearings","(blank)"}))))
Error:
The expression refers to multiple columns. It is not possible to convert several columns to a scalar value.
Thanks for your help
Hi @Alejandro9805 ,
On my test, The measure seems no problem:
In order to better understanding your demands and give the right solution, could you please share with me some screenshots of your data after hiding sensitive information and tell me what's your expected output?
Thanks for your efforts & time in advance.
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Gracias por ayudar,
Hice lo que me relacionaste, pero ahora me aparece este problema:
Código DAX:
Error:
La sintaxis de ")" no es correcta. (DAX(CALCULATE(DIVIDE([Cantidad disponible],[Promedio de venta],FILTER('Inventario sin ubicación','Inventario sin ubicación'[ESTILO] in {"Accesorios","Baterias","Bombillos","Bujias","Cadenas Y Links","Cascos Y Rptos Cascos","Llantas Y Neumaticos","Lubricantes","Neumaticos","Productos Complementarios","Repuestos Originales","Rodamientos","(en blanco)"))))).
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |