<?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 Forecast in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast/m-p/3712127#M144434</link>
    <description>&lt;P&gt;Good afternoon forum,&lt;/P&gt;&lt;P&gt;Let's see if someone can help me.&lt;BR /&gt;I have a table like this and I want that my Forecast_ticket, for when a month still has no data, fills me with the data of the month of the previous year, ie for 01-02-2024 appears Service with 119 and Customer with 12 any ideas?&lt;/P&gt;&lt;P&gt;It is a much more extensive table, but as an example:&lt;/P&gt;&lt;P&gt;FechaMes Department tickets Forecast_ticket&lt;BR /&gt;01/02/23 Service 119 119&lt;BR /&gt;01/02/23 Customer 12 12&lt;BR /&gt;01/03/23 Service 510 510&lt;BR /&gt;01/03/23 Customer 62 62&lt;BR /&gt;01/04/23 Service 504 504&lt;BR /&gt;01/04/23 Customer 60 60&lt;BR /&gt;01/05/23 Service 527 527&lt;BR /&gt;01/05/23 Customer 62 62&lt;BR /&gt;01/06/23 Service 508 508&lt;BR /&gt;01/06/23 Customer 60 60&lt;BR /&gt;01/07/23 Service 527 527&lt;BR /&gt;01/07/23 Customer 62 62&lt;BR /&gt;01/08/23 Service 527 527&lt;BR /&gt;01/08/23 Customer 62 62&lt;BR /&gt;01/09/23 Service 510 510&lt;BR /&gt;01/09/23 Customer 60 60&lt;BR /&gt;01/10/23 Service 527 527&lt;BR /&gt;01/10/23 Customer 62 62&lt;BR /&gt;01/11/23 Service 510 510&lt;BR /&gt;01/11/23 Customer 60 60&lt;BR /&gt;01/12/23 Service 511 511&lt;BR /&gt;01/12/23 Customer 62 62&lt;BR /&gt;01/01/24 Service 527 527&lt;BR /&gt;01/01/24 Customer 62 62&lt;BR /&gt;01/02/24 Service&lt;BR /&gt;01/02/24 Customer&lt;BR /&gt;01/03/24 Service&lt;BR /&gt;01/03/24 Customer&lt;BR /&gt;01/04/24 Service&lt;BR /&gt;01/04/24 Customer&lt;BR /&gt;01/05/24 Service&lt;BR /&gt;01/05/24 Customer&lt;BR /&gt;01/06/24 Service&lt;BR /&gt;01/06/24 Customer&lt;BR /&gt;01/07/24 Service&lt;BR /&gt;01/07/24 Customer&lt;BR /&gt;01/08/24 Service&lt;BR /&gt;01/08/24 Customer&lt;BR /&gt;01/09/24 Service&lt;BR /&gt;01/09/24 Customer&lt;BR /&gt;01/10/24 Service&lt;BR /&gt;01/10/24 Customer&lt;BR /&gt;01/11/24 Service&lt;BR /&gt;01/11/24 Customer&lt;BR /&gt;01/12/24 Service&lt;BR /&gt;01/12/24 Customer&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 19:34:51 GMT</pubDate>
    <dc:creator>jemalosa2000</dc:creator>
    <dc:date>2024-02-20T19:34:51Z</dc:date>
    <item>
      <title>Forecast</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast/m-p/3712127#M144434</link>
      <description>&lt;P&gt;Good afternoon forum,&lt;/P&gt;&lt;P&gt;Let's see if someone can help me.&lt;BR /&gt;I have a table like this and I want that my Forecast_ticket, for when a month still has no data, fills me with the data of the month of the previous year, ie for 01-02-2024 appears Service with 119 and Customer with 12 any ideas?&lt;/P&gt;&lt;P&gt;It is a much more extensive table, but as an example:&lt;/P&gt;&lt;P&gt;FechaMes Department tickets Forecast_ticket&lt;BR /&gt;01/02/23 Service 119 119&lt;BR /&gt;01/02/23 Customer 12 12&lt;BR /&gt;01/03/23 Service 510 510&lt;BR /&gt;01/03/23 Customer 62 62&lt;BR /&gt;01/04/23 Service 504 504&lt;BR /&gt;01/04/23 Customer 60 60&lt;BR /&gt;01/05/23 Service 527 527&lt;BR /&gt;01/05/23 Customer 62 62&lt;BR /&gt;01/06/23 Service 508 508&lt;BR /&gt;01/06/23 Customer 60 60&lt;BR /&gt;01/07/23 Service 527 527&lt;BR /&gt;01/07/23 Customer 62 62&lt;BR /&gt;01/08/23 Service 527 527&lt;BR /&gt;01/08/23 Customer 62 62&lt;BR /&gt;01/09/23 Service 510 510&lt;BR /&gt;01/09/23 Customer 60 60&lt;BR /&gt;01/10/23 Service 527 527&lt;BR /&gt;01/10/23 Customer 62 62&lt;BR /&gt;01/11/23 Service 510 510&lt;BR /&gt;01/11/23 Customer 60 60&lt;BR /&gt;01/12/23 Service 511 511&lt;BR /&gt;01/12/23 Customer 62 62&lt;BR /&gt;01/01/24 Service 527 527&lt;BR /&gt;01/01/24 Customer 62 62&lt;BR /&gt;01/02/24 Service&lt;BR /&gt;01/02/24 Customer&lt;BR /&gt;01/03/24 Service&lt;BR /&gt;01/03/24 Customer&lt;BR /&gt;01/04/24 Service&lt;BR /&gt;01/04/24 Customer&lt;BR /&gt;01/05/24 Service&lt;BR /&gt;01/05/24 Customer&lt;BR /&gt;01/06/24 Service&lt;BR /&gt;01/06/24 Customer&lt;BR /&gt;01/07/24 Service&lt;BR /&gt;01/07/24 Customer&lt;BR /&gt;01/08/24 Service&lt;BR /&gt;01/08/24 Customer&lt;BR /&gt;01/09/24 Service&lt;BR /&gt;01/09/24 Customer&lt;BR /&gt;01/10/24 Service&lt;BR /&gt;01/10/24 Customer&lt;BR /&gt;01/11/24 Service&lt;BR /&gt;01/11/24 Customer&lt;BR /&gt;01/12/24 Service&lt;BR /&gt;01/12/24 Customer&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 19:34:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast/m-p/3712127#M144434</guid>
      <dc:creator>jemalosa2000</dc:creator>
      <dc:date>2024-02-20T19:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast/m-p/3712827#M144466</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="693370" data-lia-user-login="jemalosa2000" class="lia-mention lia-mention-user"&gt;jemalosa2000&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;/P&gt;
&lt;P&gt;1.Create a calculated column to find the tickets value.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;new tickets =

IF(

    ISBLANK([tickets]),

    CALCULATE(

        SUM('Table'[tickets]),

        FILTER(ALL('Table'),DATE(YEAR('Table'[FechaMes])+1,MONTH('Table'[FechaMes]),DAY('Table'[FechaMes])) = EARLIER('Table'[FechaMes]) &amp;amp;&amp;amp; 'Table'[Department] = EARLIER('Table'[Department]))

    ),

    [tickets]

)&lt;/LI-CODE&gt;
&lt;P&gt;2.Create a calculated column to find the Forecast_ticket value.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;new Forecast_ticket =

IF(

    ISBLANK([Forecast_ticket]),

    CALCULATE(

        SUM('Table'[Forecast_ticket]),

        FILTER(ALL('Table'),DATE(YEAR('Table'[FechaMes])+1,MONTH('Table'[FechaMes]),DAY('Table'[FechaMes])) = EARLIER('Table'[FechaMes]) &amp;amp;&amp;amp; 'Table'[Department] = EARLIER('Table'[Department]))

    ),

    [Forecast_ticket]

)&lt;/LI-CODE&gt;
&lt;P&gt;3.The final result is shown below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 02:50:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast/m-p/3712827#M144466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-21T02:50:37Z</dc:date>
    </item>
  </channel>
</rss>

