<?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: DIVIDE function showing all periods even though there is no data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-function-showing-all-periods-even-though-there-is-no-data/m-p/1222567#M19861</link>
    <description>&lt;P&gt;For example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;OTD% = 
var d=DIVIDE([LatePOCount],DISTINCTCOUNT(POReceiptDetail[PONumber]),0)
return if(d&amp;lt;&amp;gt;0,
CALCULATE(1-d,POReceiptDetail[POStatus]="CLOSED",POReceiptDetail[ReceiptDate]&amp;lt;=TODAY()))&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 14 Jul 2020 19:56:49 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-07-14T19:56:49Z</dc:date>
    <item>
      <title>DIVIDE function showing all periods even though there is no data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-function-showing-all-periods-even-though-there-is-no-data/m-p/1222549#M19860</link>
      <description>&lt;P&gt;Hello - I have a divide function to show on-time orders based on customer. It is currently July but the matrix shows all the way to Dec with 100% showing in the future months - here is my measure that divides the count of late by the total # of POs if they are closed and receipt date is &amp;lt;=today&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OTD% = CALCULATE(1-DIVIDE([LatePOCount],DISTINCTCOUNT(POReceiptDetail[PONumber]),0),POReceiptDetail[POStatus]="CLOSED",POReceiptDetail[ReceiptDate]&amp;lt;=TODAY())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My table show all 12 months with the correct %'s jan - jul but if there is not data it show 100% instead of blank or 0. how do i get this table to just show % through the current month?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks, Glenn&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Jul 2020 19:46:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-function-showing-all-periods-even-though-there-is-no-data/m-p/1222549#M19860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-14T19:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: DIVIDE function showing all periods even though there is no data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-function-showing-all-periods-even-though-there-is-no-data/m-p/1222567#M19861</link>
      <description>&lt;P&gt;For example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;OTD% = 
var d=DIVIDE([LatePOCount],DISTINCTCOUNT(POReceiptDetail[PONumber]),0)
return if(d&amp;lt;&amp;gt;0,
CALCULATE(1-d,POReceiptDetail[POStatus]="CLOSED",POReceiptDetail[ReceiptDate]&amp;lt;=TODAY()))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Jul 2020 19:56:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-function-showing-all-periods-even-though-there-is-no-data/m-p/1222567#M19861</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-14T19:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: DIVIDE function showing all periods even though there is no data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-function-showing-all-periods-even-though-there-is-no-data/m-p/1223220#M19873</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try like&lt;/P&gt;
&lt;P&gt;OTD% = CALCULATE(1-DIVIDE([LatePOCount],DISTINCTCOUNT(POReceiptDetail[PONumber])),filter(POReceiptDetail,POReceiptDetail[POStatus]="CLOSED",POReceiptDetail[ReceiptDate]&amp;lt;=TODAY()))&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 03:02:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-function-showing-all-periods-even-though-there-is-no-data/m-p/1223220#M19873</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-15T03:02:34Z</dc:date>
    </item>
  </channel>
</rss>

