Forum Discussion
Display\Find The first Date that Inventory QTY goes Negative based on Running Net Inventory Totals
- 9 years ago
Hi Grunstra,
I thought your resource table in same table, I understand now. Please create a measure using the formula, then add it to your table report.New Due-Date = MINX(FILTER('OrdersOpen-All','OrdersOpen-All'[Net Inv RT]<0),'OrdersOpen-All'[due_date])
Best Regards,
Angelia
Hi Grunstra,
Please create measure using the formula and check if it works fine.
Due-Date = CALCULATE(MAX(Table[due_date]),FILTER(ALLEXCEPT(Table,Table[item]),Table[Value]=MINX(FILTER(Table,Table[NetInvRT]<0),Table[index])))
Best Regard,
Angelia
What would I put for your measure example of "Table[Value]=" section?
This is what I came up with but doesn't display any reuslts when I add it into the top table visual. Not sure if I have the correct fields.
Due-Date = CALCULATE(MAX('OrdersOpen-All'[due_date]),FILTER(ALLEXCEPT('OrdersOpen-All','OrdersOpen-All'[item]),'OrdersOpen-All'[due_date]=MINX(FILTER('OrdersOpen-All','OrdersOpen-All'[Net Inv RT]<0),'OrdersOpen-All'[Index])))
- v-huizhn-msft9 years agoMicrosoft Employee
Hi Grunstra,
Do you mind share your sample table in table format rather than picture? So I can reproduce it.
Thanks,Angelia
- Grunstra9 years agoRegular Visitor
Here is pbix file. I only have sample data. I put in one item in this data. But you can still see when it goes negative. Thanks for the assistance.
https://www.dropbox.com/sh/4cwfgboh9lhhura/AAD1-ypTPIhrNks67FScxMPPa?dl=0
- v-huizhn-msft9 years agoMicrosoft Employee
Hi Grunstra,
I thought your resource table in same table, I understand now. Please create a measure using the formula, then add it to your table report.New Due-Date = MINX(FILTER('OrdersOpen-All','OrdersOpen-All'[Net Inv RT]<0),'OrdersOpen-All'[due_date])
Best Regards,
Angelia