<?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: Excel Formula to DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-Formula-to-DAX/m-p/2658785#M78750</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="416665" data-lia-user-login="FGLacorte" class="lia-mention lia-mention-user"&gt;FGLacorte&lt;/a&gt;&amp;nbsp;it depends how you want to present it, in a calculated column or in measure in a visual. Need more details on your specific scenario.&lt;BR /&gt;Can you share a sample file and write how and where you want to show the result?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 10:08:50 GMT</pubDate>
    <dc:creator>SpartaBI</dc:creator>
    <dc:date>2022-07-25T10:08:50Z</dc:date>
    <item>
      <title>Excel Formula to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-Formula-to-DAX/m-p/2658750#M78743</link>
      <description>&lt;P&gt;Hi all, need assistance how to do this excel formula to DAX. Basically i want to forecast my headcount until year-end by adding the latest actual headcount (is July) on number to hire from August to December, as shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 10:00:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-Formula-to-DAX/m-p/2658750#M78743</guid>
      <dc:creator>FGLacorte</dc:creator>
      <dc:date>2022-07-25T10:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Formula to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-Formula-to-DAX/m-p/2658785#M78750</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="416665" data-lia-user-login="FGLacorte" class="lia-mention lia-mention-user"&gt;FGLacorte&lt;/a&gt;&amp;nbsp;it depends how you want to present it, in a calculated column or in measure in a visual. Need more details on your specific scenario.&lt;BR /&gt;Can you share a sample file and write how and where you want to show the result?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 10:08:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-Formula-to-DAX/m-p/2658785#M78750</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-07-25T10:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Formula to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-Formula-to-DAX/m-p/2658885#M78755</link>
      <description>&lt;P&gt;I have a matrix table for that, as below. But i am failing to get the correct formula in forecast. All of them are measures.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 10:35:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-Formula-to-DAX/m-p/2658885#M78755</guid>
      <dc:creator>FGLacorte</dc:creator>
      <dc:date>2022-07-25T10:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Formula to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-Formula-to-DAX/m-p/2658921#M78756</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="416665" data-lia-user-login="FGLacorte" class="lia-mention lia-mention-user"&gt;FGLacorte&lt;/a&gt;&amp;nbsp;it will be something like that but to give you the exact syntax either you share the file or do a zoom with me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Forecast = 
VAR _current_date = MAX('Table'[Date])
VAR _latest_actual_date = MAXX(FILTER(ALL('Table'), 'Table'[Actual Headcount] &amp;lt;&amp;gt; BLANK()),'Table'[Date])
VAR _latest_actual = CALCULATE(SUM('Table'[Actual Headcount]), 'Table'[Date] = _latest_actual_date, REMOVEFILTERS('Table'))
VAR _result = 
	SWITCH(
		TRUE(),
		_current_date &amp;lt;= _latest_actual_date, CALCULATE(SUM('Table'[Actual Headcount])),
		_latest_actual + CALCULATE(SUM('Table'[To Hire))
	)
RETURN
	_result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://www.linkedin.com/company/spartabi" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.facebook.com/SpartaBI" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/Contoso-by-SpartaBI/m-p/2449543" target="_blank" rel="noopener"&gt;&lt;FONT size="4" color="#0000EE"&gt;Showcase Report – Contoso By SpartaBI&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 10:55:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-Formula-to-DAX/m-p/2658921#M78756</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-07-25T10:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Formula to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-Formula-to-DAX/m-p/2687151#M80764</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="416665" data-lia-user-login="FGLacorte" class="lia-mention lia-mention-user"&gt;FGLacorte&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please new a calculated column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Forecast =
VAR _month =
    CALCULATE (
        MAX ( 'Table'[Date] ),
        FILTER ( 'Table', 'Table'[Actual Headcount] &amp;lt;&amp;gt; BLANK () )
    )
VAR _actual_max =
    CALCULATE (
        MAX ( 'Table'[Actual Headcount] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Date] = _month )
    )
VAR _result =
    IF (
        'Table'[Actual Headcount] = BLANK (),
        SUMX (
            FILTER ( 'Table', 'Table'[Date] &amp;lt;= EARLIER ( 'Table'[Date] ) ),
            'Table'[To Hire]
        ) + _actual_max
    )
RETURN
    _result&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#FF0000" data-darkreader-inline-color=""&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#FF0000" data-darkreader-inline-color=""&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000" data-darkreader-inline-color=""&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 11:18:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Excel-Formula-to-DAX/m-p/2687151#M80764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-08T11:18:58Z</dc:date>
    </item>
  </channel>
</rss>

