Ive created a workflow and in this workflow going through my Lot Number breakdown slice as seen here below.
Slice Formula.
(
[_THISROW]
= MINROW(
"Film Lot Numbers",
"_ROWNUMBER",
and([_THISROW].[Film Lot Number] = [Film Lot Number],[_THISROW].[Film Name] = [Film Name], [Total Stock]>0)
)
)
So we are making sure that the total inventory for each lot number is greater than 0. This is working fine in the app, although some strange things going on, but in the workflow, it is including all the items including those lotnumbers that are at 0 stock.
I think there is more than 1 issue going on here. Looks like they changed how the inline view are displayed, I like this way better, just there are some bugs, and than the slice to workflow is not working properly?
(Sum(Select(display Lot Numbers[Amount Added], and([Display Name] = [_THISROW].[Display Name], [Display Lot Number] = [_THISROW].[Display Lot Number])))) - (Sum(Select(display Lot Numbers[Amount Removed], and([Display Name] = [_THISROW].[Display Name], [Display Lot Number] = [_THISROW].[Display Lot Number]))))
Im doing it ledger style as I need to implement a time machine into this later so the auditors can see exactly how much material we had on hand on any given day for mock recalls, etc.
I’m afraid I’m having a tough time wrapping my head around all of this. I think someone will need to look at your app to do some deeper analysis, which means engaging support@appsheet.com. Sorry I can’t help here.
In my inline view in the app they dont exist. This inline view is referenced on a slice.
Im using this same slice in workflow and they do exist. The slice is not filtering consistently.
Also, although it does filter them out properly in the app itself, the inline view says there are 8 entries, but there are only 4. But my workflow gets all 8. 4 of them should be filtered out.
Shout out to Philip & Dan on the Appsheet team for Spending a tremendous amount of time on this problem.
Can now say its officially solved.
In the end, it all came down to an expression throwing some Null values back–> This is why my inline view Counts “Top Left above View” have also been off.
Final solution:
(
and([_THISROW]
= MINROW(
"Display Lot Numbers",
"_ROWNUMBER",
and([_THISROW].[Display Lot Number] = [Display Lot Number],[_THISROW].[Display Name] = [Display Name],[Total Stock]>0)
), NOT(ISBLANK(MINROW(
"Display Lot Numbers",
"_ROWNUMBER",
and([_THISROW].[Display Lot Number] = [Display Lot Number],[_THISROW].[Display Name] = [Display Name],[Total Stock]>0)))))
)
Thanks @Aleksi and @Steve from the team as well for putting time into this.