title: Power BI calculate percentage (divide) using Filter
body: <p>I need to show percentage in gauge chart something like this</p>
  <p><a href="https://i.stack.imgur.com/PZfs0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PZfs0.png" alt="enter image description here" /></a></p>
  <p>I am able to bring 3000 and 37% is the something that needs to be calculated. This guage charts need to show that the data you are looking for/filtering holds 37% of 3000 (i.e. 1110)</p>
  <p>Now I need to bring this 37% in gauges chart &quot;Target value&quot; property. I need to write a measure that will divide the filter value of 1110 by 3000 that will bring the value as 37% in a measure. Then I can drag the measure under Target value property.</p>
  <p>I have written one measure that essentially does something like this:</p>
  <p><a href="https://i.stack.imgur.com/jOtKc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jOtKc.png" alt="enter image description here" /></a></p>
  <p>This measure is resulting in value of <strong>1</strong> which is not right.</p>
  <p>For example: I have 3 products - A, B &amp; C and I want to find how much Percentage Product A accounts of total of Products A+B+C. In previous example say product A accounts for 1110, product B for 1500 and C for 390</p>
  <p>How do I modify my measure so that it gives me the result only for Product A? I know filter function is helpful - not sure how. any new answers are also appreciated</p>
  <p>Thanks</p>