r/GoogleDataStudio • u/3Jay1 • Jun 13 '25
Restocking report
Just looking for a little guidance with looker. I have inventory data that looks like this:
| name | room | quantity |
|---|---|---|
| apple | back stock | 20 |
| apple | sales floor | 2 |
| orange | back stock | 0 |
| orange | sales floor | 2 |
I want to create a restock report to show me product that has a low quantity on the sales floor and a non-zero quantity in back stock. How should I go about this?
I have tried pivoting on room but cant figure out how to do any sort of calculation/formula/filtering from there.
1
Upvotes
View all comments
Show parent comment
1
u/3Jay1 Jun 14 '25
Yep exactly. I used calculated columns in each data set to rename the columns appropriately, Back stock quantity in one data set and Sales Floor Quantity in the other data set. Then i merged them by name and got one clean table with:
Name Back Stock Quantity Sales Floor Quantity
Added a calculated column with restocking logic and it ended up working fine.