title: Show values in in percentages by class in power BI
body: <p>I the following table with classes and student's score on those clase:</p>
  
  <p><a href="https://i.stack.imgur.com/lv6ty.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lv6ty.png" alt="enter image description here"></a></p>
  
  <p>I have shared that test data in this <a href="https://drive.google.com/file/d/1_Jqer6ObhpA4OpxY8ymXunMiL4hg4tO8/view?usp=sharing" rel="nofollow noreferrer">file</a> on google drive.</p>
  
  <p>From there I'm countin  the cases for each score like this: </p>
  
  <pre><code>good_count = CALCULATE(
      COUNTA('Hoja1'[class]);
      'Hoja1'[score]
          IN { "good" })
  </code></pre>
  
  <p>From there, I have this plot with is the count of scores by class:</p>
  
  <p><a href="https://i.stack.imgur.com/zPEHf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zPEHf.png" alt="enter image description here"></a></p>
  
  <p>But I need to show this as percentages of scores by class, but if I select to show the values as percentages in powerBI </p>
  
  <p><a href="https://i.stack.imgur.com/seP11.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/seP11.png" alt="enter image description here"></a></p>
  
  <p>This are shown as percentages of scores overall not by class, E.G. for class one and two, percentages should be around 50-50 for scores good and bad. How can I do this? </p>