Forum Discussion
Filter on table and column
Hi Khader,
no, i have two tables, the first one will log the purchases per day/time.... the other one will log the stock we purchase, we top up the stock every now and then, so no specific amount or intervals. these are two seperate tables
i want to know at a certain time how much stock i still have from one item by calculating the sum of the purchases of one item and deducting it from the total of the stock for that item.
showing each item in one box in Power BI is easy, my issue is that i have a lot of items, so i want to have a dropdown filter, where i select the item and it will show me the remaining stock for that item.
Any help please?
- v-piga-msft7 years agoResident Rockstar
Hi shady_hamilton,
Do you want to create a dropdown list with values of Toy, pencil, book and pen?
If it is convenient, please share your desired output so that we could help further on it.
Best Regards,
Cherry
- shady_hamilton7 years agoRegular Visitor
Hi V-Piga-msft
Yes correct, the filter will be Book, Pen, Pencil and Toy.
as for the results i want to know how much Books left in stock after all the purchases and stock top up, so if i select Book for example, it will tell me you have so and so left in your stock for books...
- Omega7 years agoImpactful Individual
If that's the case, then you need to apply a countrows for the first sheet where you will be counting the purchases. Then, take the difference of the sum of stocks from the second sheet.
- shady_hamilton7 years agoRegular Visitor
countrows is fine, I did that, my problem is the formula where you change that every time you change the filter, so when i select books in the filter the box showing the available stock should show me the books stock, if i select pens then the box should show me the Pens stock and so on...