title: Stacked bar With Percentage Label Keeping the Sizes - Power BI
body: <p>I'm having an issue while trying to turn the labels of my stacked bar graph into percentage. The point is that the percent have to look up only for to the total of the column and not for the grand total as it does when we select &quot;show value as&quot; &gt; &quot;percentage of grand total&quot;</p>
  <p>I googled it, and tried to find some soluction on Microsoft Power BI forum but I couldn't find a soluction. The best that I found was creating the measure of the percent of total to put into the tooltip box so I can see the percentage in the lightbox that show informations of the bar when using the mouse. like this:</p>
  <p><a href="https://i.stack.imgur.com/mlJJN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mlJJN.png" alt="enter image description here" /></a></p>
  <p>The total of the month 2020/05 is 67 and 17 is 25% of it.</p>
  <p>The measure %_Total in Dax:</p>
  <pre><code>%_Total = 
  var Total = CALCULATE(DISTINCTCOUNT(Analise_Reativados[Id]),REMOVEFILTERS(Analise_Reativados[Compara_Meses (grupos)]))
  var Clientes = DISTINCTCOUNT(Analise_Reativados[Id])
  return Clientes/Total
  </code></pre>
  <p>where Analise_Reativados[Compara_Meses (grupos)] is a group that aggregates through a list.</p>
  <p>It should be like this in the end:</p>
  <p><a href="https://i.stack.imgur.com/NOHfE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NOHfE.png" alt="enter image description here" /></a></p>
  <p>But I don't know how to solve it :(.</p>
  <p>Can someone help me?</p>
  <p>Thanks!</p>