<?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: DAX Divide function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-function/m-p/2819740#M89504</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;VALUES is a table function. What are expecting the following argument to return&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;VALUES('Production of the day'[actualendtime])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What is the content of the&amp;nbsp;'Production of the day'[actualendtime] column?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 11:54:58 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-10-05T11:54:58Z</dc:date>
    <item>
      <title>DAX Divide function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-function/m-p/2819623#M89498</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;I want to divide, Count(items.length) / workingDays. { Count(item.length) = count of different product, and Working days = No. of days betwwen two selected dates }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for that I wrote DAX function&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure 4 = &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&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;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Production of the day'&lt;/SPAN&gt;&lt;SPAN&gt;[actualendtime]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but it doesn't show any result. I even make separete measure for Count and Values of working days and divide these measure by making another masure. but it didn't work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;What is going wrong.? How should i make it correct.?&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:18:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-function/m-p/2819623#M89498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-05T11:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Divide function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-function/m-p/2819740#M89504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;VALUES is a table function. What are expecting the following argument to return&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;VALUES('Production of the day'[actualendtime])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What is the content of the&amp;nbsp;'Production of the day'[actualendtime] column?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:54:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-function/m-p/2819740#M89504</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-05T11:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Divide function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-function/m-p/2819774#M89507</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each DAX function has input arguments with their correct types and output with the correct type. When you pass something to a function, you have to obey the rules of syntax and types. It's like in mathematics: you can't expect that adding a set to a number will yield something meaningful - they are different objects and the "+" operation is not defined for them. VALUES, as already pointed out, is a TABLE FUNCTION, not a scalar, so you can't put it under DIVIDE which expects 2 scalars.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably fish for something like:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;[Measure 4] =
DIVIDE(
    DISTINCTCOUNT( 'Production of the day'[productshortname] ),
    DISTINCTCOUNT( 'Production of the day'[actualendtime] )
)&lt;/LI-CODE&gt;
&lt;P&gt;If you're not sure about a function, go to &lt;A href="http://dax.guide" target="_blank"&gt;http://dax.guide&lt;/A&gt;&amp;nbsp;and look for it (there's a Search box on the left-hand side). Then pay attention to the input and output.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 12:12:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-function/m-p/2819774#M89507</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-10-05T12:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Divide function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-function/m-p/2824619#M89771</link>
      <description>&lt;P&gt;I want DAX formula for Divide,&lt;/P&gt;&lt;P&gt;it's like, 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;)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;/ (&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&amp;nbsp;&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 selected 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 ( 10 -1=9; 10 -&amp;nbsp;totals selected no. of days between dates ),&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 between selected date only)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 06:05:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Divide-function/m-p/2824619#M89771</guid>
      <dc:creator>Vinit</dc:creator>
      <dc:date>2022-10-07T06:05:30Z</dc:date>
    </item>
  </channel>
</rss>

