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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
ccoslow
Regular Visitor

Calculating Percentage

Hello,

 

I'm not sure if I'm phrasing any of this correctly, and this is probably a really simple fix that I'm not seeing. Ultimately, I'm trying to show the percentage of students retained by academic year for each program. The columns below obviously show the academic years, then drill down to the "Retained" column in my query which results in two columns on the matrix: "N/A" and "Retained" (no numeric data in that column in the raw data file), and the count for the "Retained" column. 


Is there a way I can add either:

a) add a third calculated sub-column after "Retained" that shows the % of students retained based off of the previous two columns, or

b) have one column per academic year with the percentage retained? All of the percentage calculations I've seen for the "value" field only show percentage calculated by row, column, or grand total. 

 

TableShot1.JPG

Here's what my "fields" section looks like if that helps.

 

TableShot2.JPG

Thank you (and I apologize if this doesn't make much sense - my brain is fried)!

1 ACCEPTED SOLUTION
Nathaniel_C
Community Champion
Community Champion

@ccoslow ,

You will have to write a measure to figure the percentage. So if I understand the issue you would like another column say, for 2010-2011 that would show 75% for Accupuncture Master. Is that correct?

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @ccoslow ,

 

Kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

@v-frfei-msft @Nathaniel_C 

 

Thank you for your help! I've figured out a solution by creating multiple measures using DAX. 

Nathaniel_C
Community Champion
Community Champion

@ccoslow ,

You will have to write a measure to figure the percentage. So if I understand the issue you would like another column say, for 2010-2011 that would show 75% for Accupuncture Master. Is that correct?

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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