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
sandy8910
Frequent Visitor

Counting the specific result from another measure

Hi Everyone,

 

I am very new to Power BI. I have the following:

 

1. Employee Full Name (From Emp table)

2. Employee Earned amount (From Emp table)

3. Employee Task completed  (From Emp table)

4. Total Earned amount (Measure:= Sum(Employee Earned amount))

5. Total Task completed (Measure:= Sum(Employee Task completed))

6. Earned amount per task (Measure: = Divide(Total Earned amount,Total Task Completed))

 

Now I need a measure that should give me the count of Employees who earned more than $2 per WOID.

 

Issure is when I try to use CountX or Calculated Function, It does not let me refernce the original table (I need to refer to orignial table because I want a count of Full names of Employees from table and $2 value from measure table) 

Can anyone help?

 

 

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @sandy8910 ,

 

Try something like this:

_empsEarnedOver2USD =
CALCULATE(
  COUNT(empTable[Employee Full Name]),
  FILTER(
    empTable,
    [Total Earned Amount] > 2,
  )
)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
BA_Pete
Super User
Super User

Hi @sandy8910 ,

 

Try something like this:

_empsEarnedOver2USD =
CALCULATE(
  COUNT(empTable[Employee Full Name]),
  FILTER(
    empTable,
    [Total Earned Amount] > 2,
  )
)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Thanks BA_Pete for quick response,

 

Below funcation from parry2k in another thread has helped me get the answer

 

COUNTX ( VALUES ( Table[Date column] ), IF ( [Your Measure] < 3, 1 ) )

 

@sandy8910 ,

 

No problem, glad it's sorted.

 

Please accept your answer as the solution if you feel that it would help others with the same issue.

This helps others find the answer to their issues quicker.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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