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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
harsha1234
Regular Visitor

Create a measure to visualize percentage

Hi All,

 

I have these columns in the power query editor:

 

Name            Status

Adam            Registered

Bob               Not Registered

Steve             Registered

Katie             Not Registerd

Kirk               Not Registered

 

I'd like to create a card to visualize ther percent of people registered? I believe I need to create a measure but I'm having issues doing that. Can someone please help me with this?

 

Thanks in advance 🙂

 

-H

1 ACCEPTED SOLUTION

Hey,

 

just insert this little row to the filter section of each CALCULATE

 

,'Table'[Type] = "A"

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

5 REPLIES 5
TomMartens
Super User
Super User

Hey,

 

I guess this should do the work:

name of the measure = 
var theregisteredones = 
CALCULATE(
COUNT('table'[name])
,ALL('table')
,'table'[status] = "Registered")
var allpeople = 
CALCULATE(
COUNT('table'[name])
,ALL('table')
)
return DIVIDE(theregisteredones, allpeople, BLANK())

Hopefully this is what you are looking for

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hey Tom,

 

Suppose I have this:

 

Name        Status                             Type

Adam         Registered                     A

Bob            Not Registered              B

Steve          Registered                     B

Chris           Not Registered              A

Katie            Not Registered            A

 

And I only want to calculate people category A...how would I modify the above measure you provided?

 

Hey,

 

just insert this little row to the filter section of each CALCULATE

 

,'Table'[Type] = "A"

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Very nice!! Thanks Tom

Thanks!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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