<?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: A measure to calculate missing submission of reports in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-to-calculate-missing-submission-of-reports/m-p/2734302#M83833</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="327418" data-lia-user-login="NimaM" class="lia-mention lia-mention-user"&gt;NimaM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _today=TODAY()
var _day=
DATEDIFF( 
MAXX(FILTER(ALL('FactDailySalesReports'),'FactDailySalesReports'[stores]=MAX('FactDailySalesReports'[stores])),[Date])
,_today,DAY)
return
IF(
  _day  =0,
"NO",_day &amp;amp;" "&amp;amp;"time are missing")&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you need pbix, please click here.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://m365x97431909-my.sharepoint.com/:u:/g/personal/ly_m365x97431909_onmicrosoft_com/EUU71g4N6BlPhHVnm2SuadwBPMwuIj10B0YcMW-FCnuy7A?e=h18HPQ" target="_blank"&gt;&lt;SPAN&gt;A measure to calculate missing submission of reports.pbix&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 07:14:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-30T07:14:44Z</dc:date>
    <item>
      <title>A measure to calculate missing submission of reports</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-to-calculate-missing-submission-of-reports/m-p/2729908#M83560</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are running an event for two weeks. So each calendar date in this period has also an event day number, for instance, today is Event day 7.&lt;/P&gt;&lt;P&gt;All our stores should submit a daily sales report by the end of the day for their sale amount of YESTERDAY during this event (but not all do as expected). All these reported sales are stored in a FactDailySalesReports. So for each day, I know how many reports I have received with dollar value and etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Model:&amp;nbsp; I have a FactDailySalesReports, connected to a Date table, connected to an EventDay table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a report that shows Stores and the Number of Missing Reports in a table format or something. For instance, if today is the 7th day of the event and I expect to have 6 reports from every store, but since I don't, then I need an additional column to tell me how many are missing reports for each store up to this point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully, this is clear enough.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 22:45:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-to-calculate-missing-submission-of-reports/m-p/2729908#M83560</guid>
      <dc:creator>NimaM</dc:creator>
      <dc:date>2022-08-26T22:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: A measure to calculate missing submission of reports</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-to-calculate-missing-submission-of-reports/m-p/2730703#M83611</link>
      <description>&lt;P&gt;Why don't you create a table that will, for each store, hold a record that will tell you the date of report submission, something like report id and the id of the store that submitted the report? It'll then be so easy to calculate what you want... Such a table could be hidden from the end user and only a measure exposed.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Aug 2022 07:31:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-to-calculate-missing-submission-of-reports/m-p/2730703#M83611</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-08-28T07:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: A measure to calculate missing submission of reports</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-to-calculate-missing-submission-of-reports/m-p/2734302#M83833</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="327418" data-lia-user-login="NimaM" class="lia-mention lia-mention-user"&gt;NimaM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _today=TODAY()
var _day=
DATEDIFF( 
MAXX(FILTER(ALL('FactDailySalesReports'),'FactDailySalesReports'[stores]=MAX('FactDailySalesReports'[stores])),[Date])
,_today,DAY)
return
IF(
  _day  =0,
"NO",_day &amp;amp;" "&amp;amp;"time are missing")&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you need pbix, please click here.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://m365x97431909-my.sharepoint.com/:u:/g/personal/ly_m365x97431909_onmicrosoft_com/EUU71g4N6BlPhHVnm2SuadwBPMwuIj10B0YcMW-FCnuy7A?e=h18HPQ" target="_blank"&gt;&lt;SPAN&gt;A measure to calculate missing submission of reports.pbix&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 07:14:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-to-calculate-missing-submission-of-reports/m-p/2734302#M83833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-30T07:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: A measure to calculate missing submission of reports</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-to-calculate-missing-submission-of-reports/m-p/2736075#M83918</link>
      <description>&lt;P&gt;Thanks, Liu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked perfectly. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 18:11:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-to-calculate-missing-submission-of-reports/m-p/2736075#M83918</guid>
      <dc:creator>NimaM</dc:creator>
      <dc:date>2022-08-30T18:11:35Z</dc:date>
    </item>
  </channel>
</rss>

