<?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: Calculate Number of days cell is Blank in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3795180#M148321</link>
    <description>&lt;P&gt;Please provide sample data &lt;STRONG&gt;that fully covers your issue&lt;/STRONG&gt;.&amp;nbsp; Indicate the "current"&amp;nbsp; date for each row. Is it TODAY() ?&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2024 21:45:42 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-03-27T21:45:42Z</dc:date>
    <item>
      <title>Calculate Number of days cell is Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3794401#M148276</link>
      <description>&lt;P&gt;I need to calculate the number of days a cell has been blank (OTM #) based on the (Delivery Created On) date in my table and todays date. I am wanting to measure how long it takes a delivery to be assigned an OTM #. Once the OTM # is assigned I do not need a calculation. I just want to show "this delivery has been created on 3/25/2024 and it has been 2 days and still does not have an OTM#".&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Delivery&lt;/TD&gt;&lt;TD&gt;Delivery Created On&lt;/TD&gt;&lt;TD&gt;OTM #&lt;/TD&gt;&lt;TD&gt;Days Blank&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11266&lt;/TD&gt;&lt;TD&gt;3/25/2024&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11267&lt;/TD&gt;&lt;TD&gt;3/26/2024&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11268&lt;/TD&gt;&lt;TD&gt;3/25/2024&lt;/TD&gt;&lt;TD&gt;125&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 27 Mar 2024 13:56:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3794401#M148276</guid>
      <dc:creator>GMadd</dc:creator>
      <dc:date>2024-03-27T13:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of days cell is Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3795180#M148321</link>
      <description>&lt;P&gt;Please provide sample data &lt;STRONG&gt;that fully covers your issue&lt;/STRONG&gt;.&amp;nbsp; Indicate the "current"&amp;nbsp; date for each row. Is it TODAY() ?&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 21:45:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3795180#M148321</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-27T21:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of days cell is Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3795221#M148323</link>
      <description>&lt;P&gt;The current date for each row is the present day. Below is how I want it to work. In the Days Blank column I want a formula to calculate the number of days the OTM # cell has been blank based on the Delivery Created on column. The data below is assuming the current date is 3/27/2024. The first delivery was created on 3/25/2024 and I want the formula to count the number of days the delivery has been created for without an OTM number. This value should be 2 since there are two days from 3/25/2024 and the current date (3/27/2024).&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Delivery&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Delivery Created On&lt;/TD&gt;&lt;TD&gt;OTM #&lt;/TD&gt;&lt;TD&gt;Days Blank&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11266&lt;/TD&gt;&lt;TD&gt;3/25/2024&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11267&lt;/TD&gt;&lt;TD&gt;3/26/2024&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11268&lt;/TD&gt;&lt;TD&gt;3/25/2024&lt;/TD&gt;&lt;TD&gt;125&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11269&lt;/TD&gt;&lt;TD&gt;3/27/2024&lt;/TD&gt;&lt;TD&gt;126&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 27 Mar 2024 22:32:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3795221#M148323</guid>
      <dc:creator>GMadd</dc:creator>
      <dc:date>2024-03-27T22:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of days cell is Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3795271#M148326</link>
      <description>&lt;P&gt;which timezone?&amp;nbsp; Remember that the Power BI Service runs on UTC.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 23:40:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3795271#M148326</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-27T23:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of days cell is Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3795408#M148339</link>
      <description>&lt;P&gt;Eastern time zone&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 01:55:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3795408#M148339</guid>
      <dc:creator>GMadd</dc:creator>
      <dc:date>2024-03-28T01:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of days cell is Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3796780#M148383</link>
      <description>&lt;P&gt;You would have to use TODAY() - 1/6&amp;nbsp; for that.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 12:23:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3796780#M148383</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-28T12:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of days cell is Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3796804#M148384</link>
      <description>&lt;P&gt;So what is the entire DAX formula to calculate the number of days the cell has been blank?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 12:28:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3796804#M148384</guid>
      <dc:creator>GMadd</dc:creator>
      <dc:date>2024-03-28T12:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of days cell is Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3797275#M148406</link>
      <description>&lt;P&gt;INT(TODAY()-1/6-[Delivery Created On])&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 15:54:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3797275#M148406</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-28T15:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of days cell is Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3801880#M148649</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663206" data-lia-user-login="GMadd" class="lia-mention lia-mention-user"&gt;GMadd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask if you have solved this problem? Many thanks to &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;for providing the correct way to calculate the date interval, but if you don not know what to do next, you can try the MEASURE below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Days Blank1 = 
VAR _day_diff =
    INT ( TODAY () - 1 / 6 - SELECTEDVALUE ( 'Table'[Delivery Created On] ) )
RETURN
    IF ( ISBLANK ( SELECTEDVALUE ( 'Table'[OTM #] ) ), _day_diff, 0 )
// Today is 4/1/2024&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C01%7Cv-yaningyang%40microsoft.com%7C326a6d727194478c197008dbefc04904%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638367381365912356%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=7IzyI2%2FMOAR%2FYCjWYSKCZL2VPmT4PsxuWBjdUdMWKzo%3D&amp;amp;reserved=0" target="_blank"&gt;How to get your questions answered quickly&lt;/A&gt;&amp;nbsp;--&amp;nbsp;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7Cv-yaningyang%40microsoft.com%7C326a6d727194478c197008dbefc04904%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638367381365919045%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=VeafzdwAsrpisD8s261%2FdyOwJ1aCtBXS3bPA6NODOHY%3D&amp;amp;reserved=0" target="_blank"&gt;&amp;nbsp;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 09:49:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3801880#M148649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-01T09:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of days cell is Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3808204#M148887</link>
      <description>&lt;P&gt;Thank you Yang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked the way I wanted it to.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 14:49:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Number-of-days-cell-is-Blank/m-p/3808204#M148887</guid>
      <dc:creator>GMadd</dc:creator>
      <dc:date>2024-04-03T14:49:52Z</dc:date>
    </item>
  </channel>
</rss>

