Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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)"))))).
User | Count |
---|---|
128 | |
109 | |
100 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |