Forum Discussion

TeisL's avatar
TeisL
Frequent Visitor
3 years ago

Count based on different columns combined.

Hi,

 

To give you some background information:
I'm trying to report the number of Job Requisitions (Job Req ID) who where published (job post name) internally (Job Posting: Internal posting) and externally (Job Posting: External Posting) on the same date (Posting Start Date).


Example:

 

In this example following job req id's should be counted:

  • 104588 = 1 double posting
  • 94584 = 1 double posting
  • 119917 = 0 double posting
  • 31630 = 0 double posting
  • 64128 = 0 double posting

 

Looking forward to your help!

Teis

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi TeisL ,

    1. in power query editor -> refrence table twice:

    2. filter [Job Post Name]

    table (2):

    table (3):

    3. Merge queries as a new:

    4. Aggregate:

    5.Append:

    6.group by:

    7. replace values and result:

    The PBIX file is attached for reference.

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data

    • TeisL's avatar
      TeisL
      Frequent Visitor

      Hi 

       

      Thank you for helping me. It looks very promising, but I encoutered another issue in my dataset.

      I can count the number of 'double postings', but I need to count the double posting if the First posting is internal AND external.

      Example:

      In this example we see that jobreq ID 59685 and 60197 was first published internally before it was double posted.

      Do you think we can resolve this issue as well?

      Thanks,
      Teis