<?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 How do I create a Dax formula with a date value as the denominator? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-create-a-Dax-formula-with-a-date-value-as-the/m-p/1888889#M40686</link>
    <description>&lt;P&gt;I have a requirment where the vendor wants a measure divded by the month number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Abs Perc of Error (Demand Forecast) / by the month number Example:&amp;nbsp; Jan Abs Perc of Error (Demand Forecast) / 1, Feb Abs Perc of Error (Demand Forecast) / 2, etc"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to create the DAX Measure the date denominator will not poplulate or if I try to use Quick Measure it wants to add sum&amp;nbsp;&lt;/P&gt;&lt;P&gt;or another aggregation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This a quick measure:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Demand Forecast divided by MonthNum = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE([Demand Forecast], SUM('DimDate'[MonthNum]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any guidance would be apprciated!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 08 Jun 2021 18:50:44 GMT</pubDate>
    <dc:creator>robarbie</dc:creator>
    <dc:date>2021-06-08T18:50:44Z</dc:date>
    <item>
      <title>How do I create a Dax formula with a date value as the denominator?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-create-a-Dax-formula-with-a-date-value-as-the/m-p/1888889#M40686</link>
      <description>&lt;P&gt;I have a requirment where the vendor wants a measure divded by the month number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Abs Perc of Error (Demand Forecast) / by the month number Example:&amp;nbsp; Jan Abs Perc of Error (Demand Forecast) / 1, Feb Abs Perc of Error (Demand Forecast) / 2, etc"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to create the DAX Measure the date denominator will not poplulate or if I try to use Quick Measure it wants to add sum&amp;nbsp;&lt;/P&gt;&lt;P&gt;or another aggregation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This a quick measure:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Demand Forecast divided by MonthNum = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE([Demand Forecast], SUM('DimDate'[MonthNum]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any guidance would be apprciated!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Jun 2021 18:50:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-create-a-Dax-formula-with-a-date-value-as-the/m-p/1888889#M40686</guid>
      <dc:creator>robarbie</dc:creator>
      <dc:date>2021-06-08T18:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a Dax formula with a date value as the denominator?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-create-a-Dax-formula-with-a-date-value-as-the/m-p/1889137#M40694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="15853" data-lia-user-login="robarbie" class="lia-mention lia-mention-user"&gt;robarbie&lt;/a&gt;&amp;nbsp;, how is your month number column formatted? As a whole number?&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 22:48:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-create-a-Dax-formula-with-a-date-value-as-the/m-p/1889137#M40694</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-06-08T22:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a Dax formula with a date value as the denominator?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-create-a-Dax-formula-with-a-date-value-as-the/m-p/1891128#M40733</link>
      <description>&lt;P&gt;Hi Nathaniel,&lt;/P&gt;&lt;P&gt;It is formatted as a whole number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rochelle&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 14:58:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-create-a-Dax-formula-with-a-date-value-as-the/m-p/1891128#M40733</guid>
      <dc:creator>robarbie</dc:creator>
      <dc:date>2021-06-09T14:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a Dax formula with a date value as the denominator?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-create-a-Dax-formula-with-a-date-value-as-the/m-p/1891292#M40735</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="15853" data-lia-user-login="robarbie" class="lia-mention lia-mention-user"&gt;robarbie&lt;/a&gt;&amp;nbsp;, since DAX needs to know which row to use in a table, it won't let you put in a "naked" column because there are multiple values.&amp;nbsp; I typically use MAX(), but most of the time you could use MIN() as well.&amp;nbsp; Since in a typical calculated column, the engine knows what row it is on the MAX() works fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Demand Forecast divided by MonthNum =&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;DIVIDE([Demand Forecast], MAX('DimDate'[MonthNum]))&lt;BR /&gt;Try this and let us know if it works.&amp;nbsp; If not, you may need to provide a bit more about your report.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:54:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-create-a-Dax-formula-with-a-date-value-as-the/m-p/1891292#M40735</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-06-09T15:54:38Z</dc:date>
    </item>
  </channel>
</rss>

