Take percent of column total based upon 1 of the 2 values in the column

jaguinaga

New Member
Joined
Aug 10, 2021
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hello I am trying to determine what percent of my column (b) contains "y" and what percent contains nothing. How can I create this?

Sampleyes or blank
appley
orange
appley
appley
cake
grape
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hello I am trying to determine what percent of my column (b) contains "y" and what percent contains nothing. How can I create this?

Sampleyes or blank
appley
orange
appley
appley
cake
grape
End result I am look for would be the 50% number on a card
 
Upvote 0
Like this?

Book1
ABC
1Sampleyes or blank
2appley50%
3orange
4appley
5appley
6cake
7grape
Sheet1
Cell Formulas
RangeFormula
C2C2=COUNTA(B2:B7)/COUNTA(A2:A7)
 
Upvote 0
Like this?

Book1
ABC
1Sampleyes or blank
2appley50%
3orange
4appley
5appley
6cake
7grape
Sheet1
Cell Formulas
RangeFormula
C2C2=COUNTA(B2:B7)/COUNTA(A2:A7)
Not really, i need to create a measure in powerbi to achieve that number
 
Upvote 0
Hi, something like

Code:
=CALCULATE(COUNTA(Table1[Sample]),Table1[yes or blank]="Y")/COUNTA(Table1[Sample])
 
Upvote 0
Solution

Forum statistics

Threads
1,225,531
Messages
6,185,485
Members
453,297
Latest member
alvintranvcu123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top