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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
MissBI_21
Helper II
Helper II

Sum of a Count with Filter

Hi,

 

I have a table in PowerBI that has a list of employees that complete a certain number of jobs in a day (shown below):

 

MissBI_21_0-1625569054057.png

 

I have done a count on the Job_ID field to get the data in the second column.

 

What I want to be able to do is count the number of times an employee has completed 2 or more jobs in a day but have it shown by month. So the example above should look like below:

 

MissBI_21_1-1625569286602.png

 

Can anyone help please?

 

 

1 ACCEPTED SOLUTION

Hi  @MissBI_21 ,

 

Create a measure as below:

Measure = 
SUMX(SUMMARIZE('Table','Table'[first name ],'Table'[Month],'Table'[Day],"total",IF('Table'[count of job_id]>=2,1,0)),[total])

And you will see:

vkellymsft_0-1625737312262.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

 

View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Picture1.png

 

Count Condition =
CALCULATE( COUNTROWS(Data), Data[Count of job_id]>=2)
 
 
 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
selimovd
Super User
Super User

Hey @MissBI_21 ,

 

you can do that with that.

The following measure is just considering the rows where the count of job_id is 2 or bigger:

Count 2 or more jobs =
CALCULATE(
    COUNTROWS( myTable ),
    myTable[Count of job_id] >= 2
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

 

Sorry, I didn't make it quite clear.

 

At the moment, I got the count of job_id by selecting count in the value field.

 

The original data I have looks like the below:

 

MissBI_21_0-1625573441534.png

 

From this data, I want to do a count of jobs by day to see how many people work on more than one job in a day. and then I want to sum this too look like the second pic I sent originally.

 

So I would probably need a measure to do a count by day and emloyee, then I would filter it show a count of Job_IDs>2

Hi  @MissBI_21 ,

 

Create a measure as below:

Measure = 
SUMX(SUMMARIZE('Table','Table'[first name ],'Table'[Month],'Table'[Day],"total",IF('Table'[count of job_id]>=2,1,0)),[total])

And you will see:

vkellymsft_0-1625737312262.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors