<?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 Re: Creating a measure based on condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-measure-based-on-condition/m-p/1340750#M23935</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Sep 2020 09:31:15 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-09-02T09:31:15Z</dc:date>
    <item>
      <title>Creating a measure based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-measure-based-on-condition/m-p/1340549#M23927</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a measure that determines the number of items are at 0%. To do that, this is the step that i have undertaken&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a measure to determine the distinct count of the items of interest. Formula used : DistinctCountNoBlank(Table[Reference_Col])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Then i separately calculated another measure that calculate the status to see if its 0%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Then i created a summary table using the summarize function to tabulate out the reference item and the status column and do a count row for those row that return a status of 0%.. However, the answer is not what i expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i create a measure that can give me the number without creating a summary table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 08:20:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-measure-based-on-condition/m-p/1340549#M23927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-02T08:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a measure based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-measure-based-on-condition/m-p/1340659#M23930</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do share some sample screenshots please of the data and desired output.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Pragati&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 08:48:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-measure-based-on-condition/m-p/1340659#M23930</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-09-02T08:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a measure based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-measure-based-on-condition/m-p/1340750#M23935</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 09:31:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-measure-based-on-condition/m-p/1340750#M23935</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-02T09:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a measure based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-measure-based-on-condition/m-p/1340759#M23936</link>
      <description>This is not enough information to let anyone tell you what you should do. Please add more detailed info following this post as a guide:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;</description>
      <pubDate>Wed, 02 Sep 2020 09:35:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-measure-based-on-condition/m-p/1340759#M23936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-02T09:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a measure based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-measure-based-on-condition/m-p/1341534#M23972</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81077" data-lia-user-login="Pragati11" class="lia-mention lia-mention-user"&gt;Pragati11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for the response. Below pic shows the simplified table to explain what i am trying to achieve:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the top table, it represents a simplistic table of my data source. I have created 3 measure to determine the distinct count of the number of equipment and the percentage of working equipment.&amp;nbsp; I also wanted to create a measure to calculate number of items that have the % of working equipment status at 0% but i am unsure how to write that in DAX. Therefore, I use the table visual in powerBI to return the results (as shown like in the table below) with the column Description containing the unique values of the list of items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, since I need a measure to have the count of the number of items that has status of working equipment at 0%, i went&amp;nbsp;on to create a summary table (summarized based on description of items and with column on the number of equipment and the status of&amp;nbsp; working equipment using the measures that i have created earlier) so that i can count the number of rows of items that has 0% using CountA function. But the results of both table does not tally. Not sure what went wrong here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 14:03:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-measure-based-on-condition/m-p/1341534#M23972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-02T14:03:37Z</dc:date>
    </item>
  </channel>
</rss>

