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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.