Skip to Content

Removing duplicate records for terminated employees

Hi,

I'm relatively new to BI/BW and I'm having an issue with an existing WebI HCM report.

One of the fields being reported on is termination date. The report should show one line per employee, but terminated employees are displaying two lines - one with the termination date and one without.

Can anyone tell me how I can suppress the second line (either in WebI or BeX) and only show the one with the termination date?

Thanks for your help!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2013 at 02:19 PM

    You could select the whole block and assign a report filter (termination date is not null).That should suppress the one's which doesnt have a date field on them and should solve ur issue.

    Let me know if this worked for you.

    Cheers!

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Jeff Welsh

      How about if we approach with a new variable like

      new variable= if (employer=active and date= null) then "dont delete"
      else if (employer=terminated and date=null) then delete
      end

      now create a report filter on the new variable.

      Let me know if this makes any sense.

      Cheers!

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2013 at 07:13 PM

    Hi Jeff,

    You can count the number of rows for the termination date. I assume you have data somewhat like below. perform the below steps

    Employee ID Termination Date Variable 2

    1 12/31/2012 1

    1 0

    2 1

    3 0

    3 11/15/2012 1

    Variable 1 =Count(Termination Date) In(Employee ID)

    Variable 2 =If(variable 1>1 and IsnUll(terminationdate);0;1)

    Place variable 2 next to termination Date column and make sure variable is evaluating correctly. you should see 0 and 1 as shown above. Filter on Variable 2 to show only 1 yo should get one row per employee.

    Hope this helps

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.