<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Percentage Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-Calculation/m-p/91158#M143</link>
    <description>&lt;P&gt;Trying to create a percentage based on two different &amp;nbsp;fields depending on which model, how many returns processed / total units produced. I made some attempts that did not work but the very basic idea of what I need would be Formula count / total produced. The measure for Formula Count is shown in the picture. I also know that some Total Produced values are blank. I am pretty new to Power BI so hopefully this isn't something too obvious. The reason it has not worked for me so far is that there are multiple values where PowerBI expects one value to be present (the Total Produced column).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ced.&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2016 22:44:28 GMT</pubDate>
    <dc:creator>mfminor</dc:creator>
    <dc:date>2016-11-17T22:44:28Z</dc:date>
    <item>
      <title>Percentage Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-Calculation/m-p/91158#M143</link>
      <description>&lt;P&gt;Trying to create a percentage based on two different &amp;nbsp;fields depending on which model, how many returns processed / total units produced. I made some attempts that did not work but the very basic idea of what I need would be Formula count / total produced. The measure for Formula Count is shown in the picture. I also know that some Total Produced values are blank. I am pretty new to Power BI so hopefully this isn't something too obvious. The reason it has not worked for me so far is that there are multiple values where PowerBI expects one value to be present (the Total Produced column).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ced.&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 22:44:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-Calculation/m-p/91158#M143</guid>
      <dc:creator>mfminor</dc:creator>
      <dc:date>2016-11-17T22:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-Calculation/m-p/93429#M145</link>
      <description>&lt;P&gt;Im not an expert at all, but did you try:&lt;/P&gt;&lt;P&gt;Percentage = [Formula Count] / [Total Produced]&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 19:59:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-Calculation/m-p/93429#M145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-23T19:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-Calculation/m-p/96566#M157</link>
      <description>&lt;P&gt;I think this can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Always use "/Calculate AllSelected" to get percentages, for me is the best way.&lt;/P&gt;&lt;P&gt;and the "if isblank" fixes the problem with lines without values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Percentage = if( Isblank(&lt;BR /&gt;			Counta(AviationTable[Unit Description]))
			;0
			;Counta(AviationTable[Unit Description]) 
		/CALCULATE(Counta(AviationTable[Unit Description]);AllSelected())&lt;/PRE&gt;&lt;P&gt;I Hope to have helped&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 21:44:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-Calculation/m-p/96566#M157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-01T21:44:45Z</dc:date>
    </item>
  </channel>
</rss>

