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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.