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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
blockobito
Helper I
Helper I

Get the Average % of 1 column in Card

Hello i need to get the Average Percentage of 1 column data

Example: 

Gender

Male

Female 

 

pGender = Count(Data[Gender]) = "Male" / Count(Data[Gender]) = "Female" 

 

 

1 ACCEPTED SOLUTION
FreemanZ
Community Champion
Community Champion

Try to create a measure like this:
 
pGender := 
VAR CountMale = 
CALCULATE( 
    COUNTROWS(Data),
    Data[Gender]) = "Male"
)
VAR CountFemale = 
CALCULATE( 
    COUNTROWS(Data),
    Data[Gender]) = "Female"
)
RETURN
    DIVIDE (CountMale, CountFemale)

View solution in original post

1 REPLY 1
FreemanZ
Community Champion
Community Champion

Try to create a measure like this:
 
pGender := 
VAR CountMale = 
CALCULATE( 
    COUNTROWS(Data),
    Data[Gender]) = "Male"
)
VAR CountFemale = 
CALCULATE( 
    COUNTROWS(Data),
    Data[Gender]) = "Female"
)
RETURN
    DIVIDE (CountMale, CountFemale)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.