<?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 % of days where value is 0 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782584#M4172</link>
    <description>&lt;P&gt;I am trying to calculate the % of days where the value is 0.&amp;nbsp; Below is sample data. Underlying dataset has multiple values each day. I need to know if the total of all values for a day is above 0. Then what percent of days are above 0&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2019 16:56:04 GMT</pubDate>
    <dc:creator>OZEEE</dc:creator>
    <dc:date>2019-09-03T16:56:04Z</dc:date>
    <item>
      <title>% of days where value is 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782584#M4172</link>
      <description>&lt;P&gt;I am trying to calculate the % of days where the value is 0.&amp;nbsp; Below is sample data. Underlying dataset has multiple values each day. I need to know if the total of all values for a day is above 0. Then what percent of days are above 0&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 16:56:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782584#M4172</guid>
      <dc:creator>OZEEE</dc:creator>
      <dc:date>2019-09-03T16:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: % of days where value is 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782689#M4177</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="167598" data-lia-user-login="OZEEE" class="lia-mention lia-mention-user"&gt;OZEEE&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try this... If you use the numerator as another measure, it will give you the count.&lt;/P&gt;&lt;P&gt;If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 18:36:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782689#M4177</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-09-03T18:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: % of days where value is 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782713#M4180</link>
      <description>&lt;P&gt;Hi Nathan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem with this is that each row isn't a distinct date. For example, I could have two values on 6/1/2018, but I still need that to count as 1 "non-zero day". The dates with more than than one value will distort the calculation I am looking for.&amp;nbsp; I guess another way to word it is, "What percent of the time is the sum of a day 0 throughout the year"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&amp;nbsp; The denominator should be 365 when analyzing a year's worth of data&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 19:00:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782713#M4180</guid>
      <dc:creator>OZEEE</dc:creator>
      <dc:date>2019-09-03T19:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: % of days where value is 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782730#M4181</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="167598" data-lia-user-login="OZEEE" class="lia-mention lia-mention-user"&gt;OZEEE&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Tell me more. On 6/1/2018 you say that you can have two values. Could they both be zero, could one be zero and the other not? What happens then?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 19:27:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782730#M4181</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-09-03T19:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: % of days where value is 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782831#M4186</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="167598" data-lia-user-login="OZEEE" class="lia-mention lia-mention-user"&gt;OZEEE&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rather than assuming 365, you can use this measure to count the unique entries in your date column for the denominator.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Distinct Values = COUNTROWS(DISTINCT(AboveZ[DOS]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.&lt;BR /&gt;Nathaniel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 22:28:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782831#M4186</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-09-03T22:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: % of days where value is 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782847#M4187</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="167598" data-lia-user-login="OZEEE" class="lia-mention lia-mention-user"&gt;OZEEE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this picture, at the left is my data table, with 10 rows, and June 2 has a report of 0 and 2. There are actually 8 distinct dates, so my measure [Distinct Values] gives you the denominator. Then for the numerator, I used SUMMARIZE() to group by date, so we lost one day = 0. Use the measure [Summarize] for the numerator. I put the measure [Percent of Days 2] in the editing bar at the top. ([The Percent of Days] is superseded by the [Percent of Days 2].)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 23:14:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/of-days-where-value-is-0/m-p/782847#M4187</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-09-03T23:14:07Z</dc:date>
    </item>
  </channel>
</rss>

