Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
TeisL
Frequent Visitor

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:

TeisL_2-1667480433072.png

 

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 2
v-cgao-msft
Community Support
Community Support

Hi @TeisL ,

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

vcgaomsft_0-1667550975387.png

2. filter [Job Post Name]

table (2):

vcgaomsft_1-1667551025851.png

table (3):

vcgaomsft_2-1667551122108.png

3. Merge queries as a new:

vcgaomsft_3-1667551169028.png

4. Aggregate:

vcgaomsft_4-1667551217051.png

5.Append:

vcgaomsft_5-1667551309669.png

6.group by:

vcgaomsft_6-1667551338862.png

7. replace values and result:

vcgaomsft_7-1667551370650.png

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

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:

TeisL_0-1667905056308.png

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors