<?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 Combine Multiple Measures Into Single Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combine-Multiple-Measures-Into-Single-Measure/m-p/3349130#M157504</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to clean up some formulas due to poor performance. I am working on creating a headcount forecast using monthly headcount data, turnover data, and a backfill rate. I have 13 measures that determine the headcount forecast for 12 months in the future. I would like to combine these 12 into a single measure to see if this improves performance. Here is an image of 3 of these formulas and how I would like to display them in a single measure called TEST Forecast:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like TEST Forecast to display the values in the Headcount Forecast Turnover + Backfill Count Helper columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the DAX for Headcount Forecast Turnover + Backfill Count Helper:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Headcount Forecast Turnover + Backfill Count Helper = 
var HeadcountForecastPM = CALCULATE (
    [Headcount Actual],
    FILTER (ALL('Date'),
        'Date'[Serial Month]
            = MAX ( 'Date'[Serial Month] ) - 1
    )
)

var TurnoverForecast = HeadcountForecastPM * [Monthly Turnover Rate 3Y Average]

var Backfill = TurnoverForecast * [Backfill Percent Value]

var CurrentMonthForecast = IF ( [CurrentMonthYear] = YEAR(TODAY())&amp;amp;MONTH(TODAY()), HeadcountForecastPM - TurnoverForecast + Backfill)

Return
CurrentMonthForecast&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Here is the DAX for Headcount Forecast Turnover + Backfill Count Helper 2:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Headcount Forecast Turnover + Backfill Count Helper 2 = 
var HeadcountForecastPM = CALCULATE (
    [Headcount Forecast Turnover + Backfill Count Helper],
    FILTER (ALL('Date'),
        'Date'[Serial Month]
            = MAX ( 'Date'[Serial Month] ) - 1
    )
)

var TurnoverForecast = HeadcountForecastPM * [Monthly Turnover Rate 3Y Average]

var Backfill = TurnoverForecast * [Backfill Percent Value]

var HeadcountForecast = HeadcountForecastPM - TurnoverForecast + Backfill

RETURN
HeadcountForecast&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly, here is my formula for TEST Forecast:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TEST Forecast = 
var HeadcountForecastPM = CALCULATE (
    [Headcount Actual],
    FILTER (ALL('Date'),
        'Date'[Serial Month]
            = MAX ( 'Date'[Serial Month] ) - 1
    )
)

var TurnoverForecast = HeadcountForecastPM * [Monthly Turnover Rate 3Y Average]

var Backfill = TurnoverForecast * [Backfill Percent Value]

var CurrentMonthForecast = IF ( [CurrentMonthYear] = YEAR(TODAY())&amp;amp;MONTH(TODAY()), HeadcountForecastPM - TurnoverForecast + Backfill)

--------------------------------------

var TurnoverForecast2 = CurrentMonthForecast * [Monthly Turnover Rate 3Y Average]

var Backfill2 = TurnoverForecast2 * [Backfill Percent Value]

var HeadcountForecast = CurrentMonthForecast - TurnoverForecast2 + Backfill2

--------------------------------------
Return 
CurrentMonthForecast&lt;/LI-CODE&gt;&lt;P&gt;Anytime I sum the variables I will get a true sum, but I want them to be appended so that the column shows a value for each month rather than a sum for the current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 15:32:17 GMT</pubDate>
    <dc:creator>CatManKuhn</dc:creator>
    <dc:date>2023-07-25T15:32:17Z</dc:date>
    <item>
      <title>Combine Multiple Measures Into Single Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combine-Multiple-Measures-Into-Single-Measure/m-p/3349130#M157504</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to clean up some formulas due to poor performance. I am working on creating a headcount forecast using monthly headcount data, turnover data, and a backfill rate. I have 13 measures that determine the headcount forecast for 12 months in the future. I would like to combine these 12 into a single measure to see if this improves performance. Here is an image of 3 of these formulas and how I would like to display them in a single measure called TEST Forecast:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like TEST Forecast to display the values in the Headcount Forecast Turnover + Backfill Count Helper columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the DAX for Headcount Forecast Turnover + Backfill Count Helper:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Headcount Forecast Turnover + Backfill Count Helper = 
var HeadcountForecastPM = CALCULATE (
    [Headcount Actual],
    FILTER (ALL('Date'),
        'Date'[Serial Month]
            = MAX ( 'Date'[Serial Month] ) - 1
    )
)

var TurnoverForecast = HeadcountForecastPM * [Monthly Turnover Rate 3Y Average]

var Backfill = TurnoverForecast * [Backfill Percent Value]

var CurrentMonthForecast = IF ( [CurrentMonthYear] = YEAR(TODAY())&amp;amp;MONTH(TODAY()), HeadcountForecastPM - TurnoverForecast + Backfill)

Return
CurrentMonthForecast&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Here is the DAX for Headcount Forecast Turnover + Backfill Count Helper 2:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Headcount Forecast Turnover + Backfill Count Helper 2 = 
var HeadcountForecastPM = CALCULATE (
    [Headcount Forecast Turnover + Backfill Count Helper],
    FILTER (ALL('Date'),
        'Date'[Serial Month]
            = MAX ( 'Date'[Serial Month] ) - 1
    )
)

var TurnoverForecast = HeadcountForecastPM * [Monthly Turnover Rate 3Y Average]

var Backfill = TurnoverForecast * [Backfill Percent Value]

var HeadcountForecast = HeadcountForecastPM - TurnoverForecast + Backfill

RETURN
HeadcountForecast&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly, here is my formula for TEST Forecast:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TEST Forecast = 
var HeadcountForecastPM = CALCULATE (
    [Headcount Actual],
    FILTER (ALL('Date'),
        'Date'[Serial Month]
            = MAX ( 'Date'[Serial Month] ) - 1
    )
)

var TurnoverForecast = HeadcountForecastPM * [Monthly Turnover Rate 3Y Average]

var Backfill = TurnoverForecast * [Backfill Percent Value]

var CurrentMonthForecast = IF ( [CurrentMonthYear] = YEAR(TODAY())&amp;amp;MONTH(TODAY()), HeadcountForecastPM - TurnoverForecast + Backfill)

--------------------------------------

var TurnoverForecast2 = CurrentMonthForecast * [Monthly Turnover Rate 3Y Average]

var Backfill2 = TurnoverForecast2 * [Backfill Percent Value]

var HeadcountForecast = CurrentMonthForecast - TurnoverForecast2 + Backfill2

--------------------------------------
Return 
CurrentMonthForecast&lt;/LI-CODE&gt;&lt;P&gt;Anytime I sum the variables I will get a true sum, but I want them to be appended so that the column shows a value for each month rather than a sum for the current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 15:32:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combine-Multiple-Measures-Into-Single-Measure/m-p/3349130#M157504</guid>
      <dc:creator>CatManKuhn</dc:creator>
      <dc:date>2023-07-25T15:32:17Z</dc:date>
    </item>
  </channel>
</rss>

