on 06-04-2015 7:39 PM
I am currently working on a report that by default has supplied us with the current on hand quantity for an item. What I would like to be able to do is create a separate column in the report that supplies us with the on hand quantity of the same item in between a given date range. I am running in to a couple of issues with this and was hoping someone would be able to assist me.
Thank you,
Hi Corey,
1) You would create a Date Range prompt
2) You would create a formula that looks something like this:
If {Date_field} IN {?Date_Range} then
{On_Hand_Qty}
3) You would then insert a 'Sum' on this formula field and place it on the Group Header/footer/report footer.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the date field that I will need and that solved the issue with respect to data types.
Now it seems that going off of the formula you suggested I arrive with this:
IF {SP_M4_OH_Items.LST_OH_QTY_DATE}IN {?LY_START}TO {?LY_END} THEN {SP_M4_OH_Items.QTY}
This returns and error message saying: "The result of the selection formula must be a boolean."
Do you know of any articles or tutorial videos that could walk me through using the database's query tool with respect to the description commands and tables?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I figured out how to do that but now I am getting all 0s as the quantity. I think the issue now is the date i am using "SP_M4_OH_Items.LST_OH_QTY_DATE" is not the right date. This is the only date time data type that shows up in my field explorer that is one of my Database Fields. I am wondering if there is a way to query my Database for all of the date time data type fields to see if there are any more of them. If there is a way to see all of the fields in the database that would be very useful as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the date field that I will need and that solved the issue with respect to data types.
Now it seems that going off of the formula you suggested I arrive with this:
IF {SP_M4_OH_Items.LST_OH_QTY_DATE}IN {?LY_START}TO {?LY_END} THEN {SP_M4_OH_Items.QTY}
This returns and error message saying: "The result of the selection formula must be a boolean."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.