on ‎2015 Jun 03 11:52 AM
Hi All,
Is that possible to have following scenario:
In the input template, we have 2 Key figure : QTY and Price. If the quantity is not blank then we want to validate that the PRICE must be entered.
Can we put the validation in the default logic to say to the system if (quantity is not blank and price is blank) then system will not save the data ?
Thank you in advance.
Request clarification before answering.
It is one or another?
Either you are entering Qty or Price? Could you please also tell us your dimensions? We are talking about Standard Environment, not Embedded?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If we are talking about comment based on particular intersection, but not all available members, we could use combination of EPMSAVEDATA and EPMSAVECOMMENT. I am not sure if that is the best option as that is the only one I see now.
Column E - Key Figure (Plain column)
Column F - Comment (Plain column)
Column G - If F ="", true = "", False = EPMSAVECOMMENT(F)
Column
Column H - If F=::, true = "", False EPMSAVEDATA(E)
In those cases if you have entered data without comment, the report will show there is no data to save.
Sorry, but "
The validation only if the user entering Qty then comment should be entered (and not vise versa).
(note : sorry..it's not price...but comment)" - not clear!
Can you provide a screenshot of the desired result?
"validation in the default logic" - is not relevant for this case, default logic is executed AFTER the data is saved to the cube.
Excel data validation will work!
Vadim
| Data entry by user : | ||
| Comment | QTY | |
| Account A | ||
| Account B | 3 | |
| Account C | ||
| Account D | Test | 5 |
| Account E | ||
| After enter the above data, user click button "SAVE". | ||
| The expected result is system to show an error because Account B has QTY= 3 without any comments. | ||
| The comment is mandatory if QTY <> "" | ||
I want to avoid BADI or macro as much as possible.
How do we force user to enter the comment if the QTY<>""? Please correct me if I am wrong, I don't think the data validation in EPM can solve this requirement.
You will be able to achieve it with my suggestions in previous post.
Otherwise VBA could be an option too... But I am not sure how convenient will be with VBA to prohibit entering QTY without comment. The common business usage will be first QTY and then comment...
Hi Emiliyan,
Thank you for the reply.
The suggestion in the previous post is also workable but...if some data has comment and others do not have comment then system will still save data for the one which have comment. Most of the users, they will not check how many data have been saved. They will think that all data have been saved.
For example,
I have following input form:
The validation is : if Cell L9 is empty then user cannot key in any value in cell P9.
In the EPMFormatting sheet, I do following:
First, add member property in the column as shown below:
Second, add EPMValidation as shown below: (formula = K9<>"")
still...it doesn't work. In the input form, in column P, it will display formula = U1048488 <>"".
(my understanding, it should show formula = L9<>"", rite?)
P.S : Please kindly let me know if the screenshot is still blur. Thanks.
Still incorrect!
"The validation is : if Cell L9 is empty then user cannot key in any value in cell P9" - Ok!
"Second, add EPMValidation as shown below: (formula = K9<>"")" - INCORRECT
You apply this validation rule to the cell - something like F35 on the formatting sheet!
The correct formula will be:
=B35<>""
where 35 is the "Quantity" line row number on the formatting sheet.
you can also use:
=$K35
For fixed K column!
Vadim
P.S. Screenshots are fine now!
| User | Count |
|---|---|
| 15 | |
| 11 | |
| 11 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.