<?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 DAX Divide Formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-Formula/m-p/2824533#M89768</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want DAX formula for Divide,&lt;/P&gt;&lt;P&gt;it likes, Measure = No. of product / (no. of days between two dates - 1 - No. of Sundays in selected period)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure =&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Production of the day'&lt;/SPAN&gt;&lt;SPAN&gt;[productshortname]&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;/ (&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Production of the day'&lt;/SPAN&gt;&lt;SPAN&gt;[actualendtime] )- 1 - no. of sundays)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how should i write Correct fromula for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here is context of each term,&amp;nbsp;&lt;/P&gt;&lt;P&gt;No. of product =&amp;nbsp;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Production of the day'&lt;/SPAN&gt;&lt;SPAN&gt;[productshortname]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;no. of days between two dates =&amp;nbsp; (VALUES ( 'Production of the day'[actualendtime] ),&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 = totals selected no. of days minus 1 day (it is value not text),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No. of Sundays in selected period =&amp;nbsp;no. of sundays( how should i write DAX for no. of Sundays only)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 05:09:33 GMT</pubDate>
    <dc:creator>Vinit</dc:creator>
    <dc:date>2022-10-07T05:09:33Z</dc:date>
    <item>
      <title>DAX Divide Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-Formula/m-p/2824533#M89768</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want DAX formula for Divide,&lt;/P&gt;&lt;P&gt;it likes, Measure = No. of product / (no. of days between two dates - 1 - No. of Sundays in selected period)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure =&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Production of the day'&lt;/SPAN&gt;&lt;SPAN&gt;[productshortname]&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;/ (&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Production of the day'&lt;/SPAN&gt;&lt;SPAN&gt;[actualendtime] )- 1 - no. of sundays)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how should i write Correct fromula for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here is context of each term,&amp;nbsp;&lt;/P&gt;&lt;P&gt;No. of product =&amp;nbsp;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Production of the day'&lt;/SPAN&gt;&lt;SPAN&gt;[productshortname]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;no. of days between two dates =&amp;nbsp; (VALUES ( 'Production of the day'[actualendtime] ),&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 = totals selected no. of days minus 1 day (it is value not text),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No. of Sundays in selected period =&amp;nbsp;no. of sundays( how should i write DAX for no. of Sundays only)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 05:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-Formula/m-p/2824533#M89768</guid>
      <dc:creator>Vinit</dc:creator>
      <dc:date>2022-10-07T05:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Divide Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-Formula/m-p/2824863#M89782</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please give some samples of your data. Thks&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 07:43:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-Formula/m-p/2824863#M89782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-07T07:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Divide Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-Formula/m-p/2824976#M89793</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In the above image,&lt;/P&gt;&lt;P&gt;In Date, Both Date (01/09/2022) &amp;amp; (30/09/2022) are coming from same column&lt;/P&gt;&lt;P&gt;i.e.&amp;nbsp;&lt;SPAN&gt;'Production of the day'[actualendtime]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below,&amp;nbsp; &amp;nbsp; &amp;nbsp;J961&amp;nbsp; &amp;nbsp; &amp;nbsp;SH1599&amp;nbsp; &amp;nbsp; &amp;nbsp;C18&amp;nbsp; &amp;nbsp; &amp;nbsp; BL5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 36.962&amp;nbsp; &amp;nbsp; 61.500&amp;nbsp; &amp;nbsp; &amp;nbsp;0.692&amp;nbsp; &amp;nbsp; 0.192&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;here for e.g. ,&lt;/P&gt;&lt;P&gt;J - Jeans(it is a product) , 961 - Total product count between 01/09/2022 &amp;amp; 30/09/2022,&amp;nbsp;&lt;/P&gt;&lt;P&gt;36.961 = 961/(30-4) i.e. 30- total selected days &amp;amp; 4 - no. of sundays between selected days(01/09/2022)&amp;amp;(30/09/2022).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is contect ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Production of the day'&lt;/SPAN&gt;&lt;SPAN&gt;[productshortname] = J&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Production of the day'&lt;/SPAN&gt;&lt;SPAN&gt;[productshortname]&lt;/SPAN&gt;&lt;SPAN&gt;) = 961&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VALUES ( 'Production of the day'[actualendtime] ) = 30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;no. of sundays i.e. 01/09/2022 &amp;amp; 30/09/2022 = 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;( how should i write DAX for no. of Sundays only between any selected date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I required DAX formula for 36.961 i.e 961/(30-4)&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope you get it.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 08:17:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-Formula/m-p/2824976#M89793</guid>
      <dc:creator>Vinit</dc:creator>
      <dc:date>2022-10-07T08:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Divide Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-Formula/m-p/2826057#M89855</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Just count the number of days without sundays, it is easier&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Working Days = 
CALCULATE(
    COUNTROWS('Date Table'), 
    FILTER('Date Table', 
        Not WEEKDAY('Date Table'[Date],2) in {7}
    )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Oct 2022 14:28:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-Formula/m-p/2826057#M89855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-07T14:28:35Z</dc:date>
    </item>
  </channel>
</rss>

