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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
harrinho
Helper III
Helper III

Help on count

Hi guys, 

 

I'm trying to find a solution on the following. I have a data table with multiple rows for an employee, with hours data on a monthly basis, for example: 

 

KEYPERIODHOURS
AAA131/05/2018240
AAA130/06/2018200
AAA131/07/2018200

 

Using further calculations and relationships from other tables which distinguish the type of hours (billable, non billable etc.), I create a calculation which generates a % based on the amount of these hours. Let's call it Utilization percentage. 

 

So when I create a a table in power bi bringing in the key and the Utilization percentage it looks like this 

 

KEYUtilization %
AAA150%
AAA260%

 

What I want is to create a column in to the data table where if the Utilization % is less than 60% then put 1 otherwise 0. I create this column but it doesn't really work as it marks everything with 1 because it I guess it the calculation does't aggregate the Utilization % from every month. And it looks like the following (the instead of column is what I'd like to show)

 

KEYUtilization %Threshold flagInstead of
AAA150%10
AAA260%11
AAA360%11
AAA455%10
AAA566%11
AAA677%11
AAA738%10
AAA844%10

 

 

I want in order to be able to get the count of the people with utilizaztion less than 60%

 

Any help would be much appreciated.

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @harrinho,

Based on my test, you can refer to below steps:

1.I have entered some sample data like the picture below:

F.PNG

2.Create a measure.

Measure = CALCULATE(COUNT(Table1[KEY]),FILTER('Table1','Table1'[Utilization %]<0.6))

3.Create a Card visual and add the related field. Now you can see the result.

FF.PNG

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/0lomj77l5h104xq/Help%20on%20count.pbix?dl=0

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @harrinho,

could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @harrinho,

Based on my test, you can refer to below steps:

1.I have entered some sample data like the picture below:

F.PNG

2.Create a measure.

Measure = CALCULATE(COUNT(Table1[KEY]),FILTER('Table1','Table1'[Utilization %]<0.6))

3.Create a Card visual and add the related field. Now you can see the result.

FF.PNG

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/0lomj77l5h104xq/Help%20on%20count.pbix?dl=0

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors