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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

@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
Super User
Super User

@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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.