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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Card visualization for % values

Hi All,

 

I am new to power BI and am trying to create card visualization to show percentage for a column. Someone suggested that I would need to create a measure first which then I would pull into card. However, my column is a text one.

 

For example – the problem I am trying to solve for: the column has two values, male and females….so it sums up both, calculates % and then I display only the females in the card. Any ideas on what would work best?

 

thanks!

2 ACCEPTED SOLUTIONS
HotChilli
Community Champion
Community Champion

Create a measure

Measure  =  
DIVIDE(COUNTROWS(FILTER(Table, Table[Column1] = "female")), COUNTROWS(Table))

Format the measure as a percentage.  Put it on a card.

 

View solution in original post

You can't compare a string to a boolean.

Table[Column1] <> ISBLANK(Table[Column1])

If you do an explicit comparison with blank(), you need to understand that 0 and empty string will also be blank.

That's ok if you understand your data.

Best practice is to use ISBLANK, I think you can write

COUNTROWS(FILTER(Table4, not ISBLANK(Table4[Column1])))
but please test.

View solution in original post

4 REPLIES 4
HotChilli
Community Champion
Community Champion

Create a measure

Measure  =  
DIVIDE(COUNTROWS(FILTER(Table, Table[Column1] = "female")), COUNTROWS(Table))

Format the measure as a percentage.  Put it on a card.

 

Anonymous
Not applicable

Thank you, this helps a lot. I am trying to remove the blanks also. However , I am getting an error with this edit:

Measure  =  
DIVIDE(COUNTROWS(FILTER(Table, Table[Column1] = "female")), COUNTROWS(FILTER(Table, Table[Column1] <> ISBLANK(Table[Column1])))

 Any ideas why?

 

thanks

You can't compare a string to a boolean.

Table[Column1] <> ISBLANK(Table[Column1])

If you do an explicit comparison with blank(), you need to understand that 0 and empty string will also be blank.

That's ok if you understand your data.

Best practice is to use ISBLANK, I think you can write

COUNTROWS(FILTER(Table4, not ISBLANK(Table4[Column1])))
but please test.
Anonymous
Not applicable

thank you for the solution and explanation!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.