We help IT Professionals succeed at work.

Display the current value or if it is null then previous value

bodeveloper17
on
462 Views
Last Modified: 2012-05-06
If the field value is not null show me the value but if it is null then show me the previous value.
The way it works ,the report is built on Crystal Console and then put on Crystal RAS server where it is taken by third party application, which has the provision of drop down or selection list where the user can pick any one value or leave it blank.
So the client wants show me the value if the user selects  a value.
But if the user does not select any value and leave it blank show me the previous value and if that field  has never filled and left blank for show me an error message "No Data".
Comment
Watch Question

Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
WHere is the user selecting values?

Is this in the parameter prompting screen?

Is this a database field?

Does the report pull all data or is there filtering?

mlmcc

Author

Commented:
User is selecting the value in a third party application. But the data gets updated in Database.
This is not a parameter.It is a field value
Yes this is a database field.
Right now the report is pulling the value if it is there for that PR.ID, if there is no value then display "No Data"
But the record will have only one value at a time.It can be left blank also.
So show me data if there is value, if there it is empty then show me the previous filled value.
If the record is new, user has not filled any value show me "No data"
Report is grouped by PR.ID and has a selection criteria based on Process Name.
Let me know if you need more info.Thanks for you help.
Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
How can you tell the difference between a new record and one that has had data?

Is that value saved somewhere?

mlmcc

Author

Commented:
Yes it is saved in another table.
Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
Is that table included in the report?

mlmcc

Author

Commented:
Yes i have included that table.
Senior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks a lot mlmcc.I changed the formula and it worked.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.