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
Mctwist_720
Regular Visitor

Filtered Measure help

Hello,

 

I'm really new to BI and need some assistance to see if what I want to create is possible.

I want to create some of type of function, measure, or count (using info detailed below) to identify the number of people with Position Code 5 who only have a training status of R and Q.  I would then like to take that count and divide by the total number of Position Code 5s to obtain a qualification percentage.  If there are resources or vidoes I should look at that would be helpful as well.

 

Thank you

 

NameTraining StatusPosition Code
BobA5
JoelD7
PeterC7
NateR5
DaveD7
GaryQ5
DracoQ5

Lucian

R5
ElrondA5

 

1 ACCEPTED SOLUTION
Shravan133
Super User
Super User

 

  • Create the Measure for the Count of People with Position Code 5 and Training Status R or Q:

    Use a DAX measure to filter the table and count only those people with Position Code = 5 and Training Status = "R" or Training Status = "Q".

     
    Qualified_Count = CALCULATE( COUNTROWS(YourTableName), YourTableName[Position Code] = 5, YourTableName[Training Status] IN {"R", "Q"} )
  • Create a Measure for the Total Number of People with Position Code 5:

    This measure will count the total number of people with Position Code = 5.

     
    Total_PositionCode5_Count = CALCULATE( COUNTROWS(YourTableName), YourTableName[Position Code] = 5 )
  • Create a Measure for the Qualification Percentage:

    Now, divide the count of qualified people by the total number of people with Position Code = 5 to get the percentage.

     
    Qualification_Percentage = DIVIDE( [Qualified_Count], [Total_PositionCode5_Count], 0 )

 

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Based on the table which you have shared, show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Shravan133
Super User
Super User

 

  • Create the Measure for the Count of People with Position Code 5 and Training Status R or Q:

    Use a DAX measure to filter the table and count only those people with Position Code = 5 and Training Status = "R" or Training Status = "Q".

     
    Qualified_Count = CALCULATE( COUNTROWS(YourTableName), YourTableName[Position Code] = 5, YourTableName[Training Status] IN {"R", "Q"} )
  • Create a Measure for the Total Number of People with Position Code 5:

    This measure will count the total number of people with Position Code = 5.

     
    Total_PositionCode5_Count = CALCULATE( COUNTROWS(YourTableName), YourTableName[Position Code] = 5 )
  • Create a Measure for the Qualification Percentage:

    Now, divide the count of qualified people by the total number of people with Position Code = 5 to get the percentage.

     
    Qualification_Percentage = DIVIDE( [Qualified_Count], [Total_PositionCode5_Count], 0 )

 

Thank you - worked perfectly and taught me something new!   

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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