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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RakeshBI
New Member

How to count measure value

Hi, 

 

I have Emp_ID, Dept, bonus and salary. I calculated bonus % in a measure and then another measure to with condition Bonus<= 5% then "Yes" else "No". 

 

Now I have Emp_ID, Dept, bonus % and yes/No in my view, I want to know how many emplyees we have yes in each dept or dept wise employees count who are yes in yes/no measure.  

 

 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@RakeshBI,

Create the following measure in your table and create a table visual as follows. If the DAX doesn't return your expected result, please share sample data of your table and post the DAX you use to calculate bonus % and  Bonus<= 5%

Measure 2 = CALCULATE(COUNT(Table1[Emp_ID]),FILTER(Table1,Table1[Bonus 5%]="Yes"))

1.PNG

Regards,
Lydia

 

Community Support Team _ Lydia Zhang
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

3 REPLIES 3
Naomig2088
Helper I
Helper I

Hi, 

Can you count mutliple values using one measure? So "yes" and "no" would be counted in the same measure? I need to use the measure to feed into another measure and can't do this if there are mutliples. Thank you.

v-yuezhe-msft
Employee
Employee

@RakeshBI,

Create the following measure in your table and create a table visual as follows. If the DAX doesn't return your expected result, please share sample data of your table and post the DAX you use to calculate bonus % and  Bonus<= 5%

Measure 2 = CALCULATE(COUNT(Table1[Emp_ID]),FILTER(Table1,Table1[Bonus 5%]="Yes"))

1.PNG

Regards,
Lydia

 

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

Hi guys!

 

I've got a similar issue, but in my case the measure doesn't return a binary value, but Text Values (Overdue, On Track, Concluded [for exemple]), and I'd like to display the amount of times those values are appearing on my matrix.

Btw, i use this measure already on a matrix, and I want to improve this simple dashboard with graphs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.