cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Having Trouble creating an appropriate measure column

Hello Everyone,

I am having trouble creating a column that can accurately represent what I am trying to present. 

2019-07-31_13-04-35.png

The above matrix is what I currently have in Power BI. I am trying to make another column here that will be a percentage column. I need it to be the percentage of "yes" out of the "total."

 

I cant just use a regular measure, because I want it to calculate for each column. On the back end, Im pullin this info from two data columns. A "Job" column that lists the job to the left, and a "Retire Eligible/5yrs" column that tells me the yes or the no.

 

This is the DAX measure/column that I was trying, but it doesnt seem to be correct:

2019-07-31_13-08-28.png

As extra information, I just made the "help column" as a column where all cells are equal to 1, since I wasnt able to sum the "job" column as it is non-numerical.

 

 

Is there a simple way that I am missing that I can get this to work?

 

Thank you!

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Having Trouble creating an appropriate measure column

Hi @mpt5108 

You may create measures like below.For example:

Yes = CALCULATE(COUNT(Table2[Job]),FILTER(Table2,Table2[Eligible]="Yes"))
Percent = [Yes]/CALCULATE(COUNT(Table2[Job]))

a1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Microsoft
Microsoft

Re: Having Trouble creating an appropriate measure column

Hi @mpt5108 

You may create measures like below.For example:

Yes = CALCULATE(COUNT(Table2[Job]),FILTER(Table2,Table2[Eligible]="Yes"))
Percent = [Yes]/CALCULATE(COUNT(Table2[Job]))

a1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Regular Visitor

Re: Having Trouble creating an appropriate measure column

This seems to work! Thank you!

Helpful resources

Announcements
Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Kudoed Authors