Let me know if you need additional clarity to my question!
Current: This works as needed.
=Right(Fields!REASONB.Value,Len(Fields!REASONB.Value) - InStrRev(Fields!REASONB.Value,"-"))
This expression removes all characters from first instance of '-', located from the right end of string, to the beginning of the string.
Example:
When expression runs on data below
ReasonB
SMPLT - QSY - Error 1234
Returns
ReasonB
Error 1234
----------------------------------------------------------------------------------------------------------------------------
Desired:
In addition to the above expression I would like to COMPARE Fields!REASONB.Value with Fields!REASONA.Value
For an example:
If Fields!REASONB = Fields!REASONA Make ReasonB column blank.
ReasonA ReasonB
SMPLT - QSY - Error 1234 SMPLT - QSY - Error 1234
Returns
ReasonA ReasonB
SMPLT - QSY - Error 1234
OR
If Fields!REASONB <> Fields!REASONA Return Maintain what is already in Fields!REASONB
ReasonA ReasonB
SMPLT - QSY - Error 1234 Flooding
Returns
ReasonA ReasonB
SMPLT - QSY - Error 1234 Flooding
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.