Cantidad por item id

Hola que tal, soy nuevo en esto y necesito de su ayuda

Tengo una tabla llamada Inventory, en la cual tiene 2 columnas (Item ID y Amount), tengo sus dos filas (item id y amount) virtuales y una llamada Total Stock Available , lo que quiero es que se la cantidad de cada item id aparezca, xq lo que tengo es que se suman todas las cantidades(amount) y no por item id.

 

Admin11a1ab_0-1695240937130.pngAdmin11a1ab_1-1695240961303.pngAdmin11a1ab_2-1695240979368.png

Admin11a1ab_3-1695241011489.pngAdmin11a1ab_4-1695241035484.png

 

Solved Solved
0 20 495
1 ACCEPTED SOLUTION

Hi bro,

@Admin11a1ab , he has made 2 columns as key (instead of item id) which has lead to the creation of new computed key. So that Select () expression did not work. Now it has been fixed. 

Even though he has few broken references in table item - categories. because he don't have entries for it.  Once entries are created it will work good. 

View solution in original post

20 REPLIES 20

Where is [Quantity] in inventory table?

Without that you can't get quantity.

Your Expression is adding amount of a particular item.

It is not quantity it is [amount] , what do i need to do to get every amount by item id, because it gives me the total amount and not by item id

 

So you need total Amount of this row item .... Right?

Through translation I got this.....

Hi, how are you, I'm new to this and I need your help.

I have a table called Inventory, in which it has 2 columns (Item ID and Amount), I have its two virtual rows (item id and amount) and one called Total Stock Available, what I want is for the quantity of each item id to appear , because what I have is that all the amounts are added and not by item id.

yes, the translation is correct, and yes, i need the total amount by item id

Expression , what you have used is right. What is the issue now?

The issue is that the formula is summing all the amount of products, wha it need is 

for example:

Item ID    AMOUNT

01                5

02               3

03                1

If item id 01 has 5 products i need that in my formula throws me 5 products on total stock available

but the formula throws me 9 on total stock availbe(it means that it sums all the amounts) and when i enter on item 01 it says 9 on total stock and also in product(item id) 03, and 04

Formula is right. Please check for the entries which may cause errors. 

If still this problem exists then I should look into your app. 

Screenshot_2023-09-21-21-37-03-18_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

โ€ƒ

I will be so grateful, because i cant fix that since 1 month ago

Now Please check, I have fixed your issue temporarily.

1.but your table has broken reference which cause this problems.

2. Expression doesn't have problem. 

3. You have computed key for the table "items" . which is not advisable. try to keep items id as key for proper functioning . 

Hola, creo que puedo ayudarte con el problema.
Primero debo empezar aclarando que las columnas fรญsicas dentro de la base de datos y las virtuales dentro de la aplicaciรณn tienen un propรณsito muy especรญfico; las fรญsicas se usan para almacenar datos, ya bien sean estรกticos o tengan tendencia a cambiarse manualmente, las virtuales se usan para poder crear datos dinรกmicos, que tengan que ser calculados en tiempo real. ร‰sta รบltima sรณlo puede ser usada por la aplicaciรณn, y por tanto que es virtual, no va a aparecer en tu base de datos.

Puedo ver que tienes un pequeรฑo desorden que te va a costar muchos dolores de cabeza en el futuro, es posible que tengamos una videoconferencia para ayudarte con ese problema?

Claro, podria el dia de maรฑana entre 10am y 1 pm hora (UTC-6) seria una gran ayuda ya que es lo ultimo que me falta por realizar

No hay ningรบn problema, puedes comunicarte conmigo a mi correo electrรณnico.

Hi bro,

@Admin11a1ab , he has made 2 columns as key (instead of item id) which has lead to the creation of new computed key. So that Select () expression did not work. Now it has been fixed. 

Even though he has few broken references in table item - categories. because he don't have entries for it.  Once entries are created it will work good. 

Thank you so much

You're welcome

I see.
I wanted to check out the way he was setting up the data, making sure he has not any problems in the future when trying to use that system on a working process.
I always say, a solved problem is not a guarantee that other problems will come up.

Top Labels in this Space