<?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: issue with SUMMARIZECOLUMNS in a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4814482#M184089</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="64728" data-lia-user-login="arq52" class="lia-mention lia-mention-user"&gt;arq52&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1287762" data-lia-user-login="FBergamaschi" class="lia-mention lia-mention-user"&gt;FBergamaschi&lt;/a&gt;&amp;nbsp;Thanks for your inputs.&lt;/P&gt;
&lt;P&gt;I hope the information provided by users was helpful. If you still have questions, please don't hesitate to reach out to the community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Sep 2025 11:04:43 GMT</pubDate>
    <dc:creator>v-priyankata</dc:creator>
    <dc:date>2025-09-02T11:04:43Z</dc:date>
    <item>
      <title>issue with SUMMARIZECOLUMNS in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4809513#M183940</link>
      <description>&lt;P&gt;Good evening,&lt;/P&gt;&lt;P&gt;I have yearly forecasts per items&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to allocate them at a week level, taking into account the working days and an allocation table per month.&lt;/P&gt;&lt;P&gt;Each item belongs to a department (Dpt) :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This department defines which percentages to use in order to allocate this yearly forecast at a month level :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have a Calendar table that defines if each date is a working day or not :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;the Data model :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In DAX studio, I have been able to build the temporary table needed by the calculations, because some weeks may belonging to different months :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE
VAR Table_Year_Month_Week =
    FILTER (
        SUMMARIZECOLUMNS (
            Calendar[Year],
            Calendar[Month number],
            Calendar[YYCW],
            Items[Item],
            "Year_fcst",
                CALCULATE (
                    SUM ( 'YearlyForecasts'[Yearly Quantity] ),
                    TREATAS ( VALUES ( Calendar[Year] ), 'YearlyForecasts'[Year] )
                ),
            "Month_pct",
                VAR pct =
                    CALCULATE (
                        MIN ( 'AllocationPerMonthDpt'[pct] ),
                        TREATAS ( VALUES ( Items[Dpt] ), 'AllocationPerMonthDpt'[Dpt] ),
                        TREATAS ( VALUES ( Calendar[Year] ), 'AllocationPerMonthDpt'[Year] ),
                        TREATAS ( VALUES ( Calendar[Month number] ), 'AllocationPerMonthDpt'[Month number] )
                    )
                RETURN
                    IF ( ISBLANK ( pct ), 0, pct ),
            "Month_WD",
                CALCULATE (
                    SUM ( Calendar[working day] ),
                    FILTER (
                        ALL ( Calendar ),
                        Calendar[Year]
                            IN VALUES ( Calendar[Year] )
                                &amp;amp;&amp;amp; Calendar[Month number] IN VALUES ( Calendar[Month number] )
                    )
                ),
            "Week_WD", CALCULATE ( SUM ( Calendar[working day] ) )
        ),
        Calendar[YYCW] = 2627
            &amp;amp;&amp;amp; Items[Item] = "ItemA"
    )
VAR tot =
    SUMX ( Table_Year_Month_Week, [Year_fcst] * [Month_pct] * [Week_WD] / [Month_WD] ) 
RETURN
    Table_Year_Month_Week
//{tot}&lt;/LI-CODE&gt;&lt;P&gt;I have read in this article (&lt;A href="https://www.sqlbi.com/articles/summarizecolumns-best-practices/" target="_blank"&gt;https://www.sqlbi.com/articles/summarizecolumns-best-practices/&lt;/A&gt; ) that “&lt;EM&gt;SUMMARIZECOLUMNS … in 2025 can be used in measures”. &lt;/EM&gt;So do I :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Weekly forecast =
VAR Table_Year_Month_Week =
        SUMMARIZECOLUMNS (
            Calendar[Year];
            Calendar[Month number];
            Calendar[YYCW];
            Items[Item];
            "Year_fcst";
                CALCULATE (
                    SUM ( 'YearlyForecasts'[Yearly Quantity] );
                    TREATAS ( VALUES ( Calendar[Year] ); 'YearlyForecasts'[Year] )
                );
            "Month_pct";
                VAR pct =
                    CALCULATE (
                        MIN ( 'AllocationPerMonthDpt'[pct] );
                        TREATAS ( VALUES ( Items[Dpt] ); 'AllocationPerMonthDpt'[Dpt] );
                        TREATAS ( VALUES ( Calendar[Year] ); 'AllocationPerMonthDpt'[Year] );
                        TREATAS ( VALUES ( Calendar[Month number] ); 'AllocationPerMonthDpt'[Month number] )
                    )
                RETURN
                    IF ( ISBLANK ( pct ); 0; pct );
            "Month_WD";
                CALCULATE (
                    SUM ( Calendar[working day] );
                    FILTER (
                        ALL ( Calendar );
                        Calendar[Year]
                            IN VALUES ( Calendar[Year] )
                                &amp;amp;&amp;amp; Calendar[Month number] IN VALUES ( Calendar[Month number] )
                    )
                );
            "Week_WD"; CALCULATE ( SUM ( Calendar[working day] ) )
        )
VAR tot =
    SUMX ( Table_Year_Month_Week; [Year_fcst] * [Month_pct] * [Week_WD] / [Month_WD] ) 
RETURN
//    Table_Year_Month_Week
tot&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my measure don’t work.&lt;/P&gt;&lt;P&gt;I get an error message :&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;"MdxScript(Model) (7, 9) Calculation error in measure 'YearlyForecasts'[Weekly forecast]: SummarizeColumns() and AddMissingItems() may not be used in this context."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;link to the excel file&amp;nbsp;&lt;A href="https://filedn.eu/lSFGnpVvPKBQIV6CPw1xLSj/ForecastAllocation.xlsx" target="_blank" rel="noopener"&gt;ForecastAllocation.xlsx&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to modify my measure to avoid the error?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 21:37:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4809513#M183940</guid>
      <dc:creator>arq52</dc:creator>
      <dc:date>2025-08-27T21:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: issue with SUMMARIZECOLUMNS in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4809993#M183951</link>
      <description>&lt;P&gt;It is difficult to answer without the pbix to inspect better&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my suggestion is to go back to ADDCOLUMNS and SUMMARIZE, see if that works and then we shall see when you can sare the pbix via some cloud serivice, can you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weekly forecast =&lt;BR /&gt;VAR Table_Year_Month_Week =&lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;YearlyForecasts;&lt;BR /&gt;Calendar[Year];&lt;BR /&gt;Calendar[Month number];&lt;BR /&gt;Calendar[YYCW];&lt;BR /&gt;Items[Item]&lt;BR /&gt;);&lt;BR /&gt;"Year_fcst";&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( 'YearlyForecasts'[Yearly Quantity] );&lt;BR /&gt;TREATAS ( VALUES ( Calendar[Year] ); 'YearlyForecasts'[Year] )&lt;BR /&gt;);&lt;BR /&gt;"Month_pct";&lt;BR /&gt;VAR pct =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;MIN ( 'AllocationPerMonthDpt'[pct] );&lt;BR /&gt;TREATAS ( VALUES ( Items[Dpt] ); 'AllocationPerMonthDpt'[Dpt] );&lt;BR /&gt;TREATAS ( VALUES ( Calendar[Year] ); 'AllocationPerMonthDpt'[Year] );&lt;BR /&gt;TREATAS ( VALUES ( Calendar[Month number] ); 'AllocationPerMonthDpt'[Month number] )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF ( ISBLANK ( pct ); 0; pct );&lt;BR /&gt;"Month_WD";&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( Calendar[working day] );&lt;BR /&gt;FILTER (&lt;BR /&gt;ALL ( Calendar );&lt;BR /&gt;Calendar[Year]&lt;BR /&gt;IN VALUES ( Calendar[Year] )&lt;BR /&gt;&amp;amp;&amp;amp; Calendar[Month number] IN VALUES ( Calendar[Month number] )&lt;BR /&gt;)&lt;BR /&gt;);&lt;BR /&gt;"Week_WD"; CALCULATE ( SUM ( Calendar[working day] ) )&lt;BR /&gt;)&lt;BR /&gt;VAR tot =&lt;BR /&gt;SUMX ( Table_Year_Month_Week; [Year_fcst] * [Month_pct] * [Week_WD] / [Month_WD] )&lt;BR /&gt;RETURN&lt;BR /&gt;// Table_Year_Month_Week&lt;BR /&gt;tot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt; in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 08:31:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4809993#M183951</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-08-28T08:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: issue with SUMMARIZECOLUMNS in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4810861#M183977</link>
      <description>&lt;P&gt;I have try your measure, but it returns an error :&lt;BR /&gt;"&lt;SPAN class=""&gt;&lt;EM&gt;Column YYCW in SUMMARIZE function was not found in the input table&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good evening,&lt;BR /&gt;At the end of my first message, there was the link to my excel file with the issue.&lt;/P&gt;&lt;P&gt;In powerbi my measure work perfectly fine and gives the expected result :&amp;nbsp;&lt;A href="https://filedn.eu/lSFGnpVvPKBQIV6CPw1xLSj/ForecastAllocation.pbix" target="_blank" rel="noopener"&gt;ForecastAllocation.pbix&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue seams to be specific to excel.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 21:03:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4810861#M183977</guid>
      <dc:creator>arq52</dc:creator>
      <dc:date>2025-08-28T21:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: issue with SUMMARIZECOLUMNS in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4811566#M184000</link>
      <description>&lt;P&gt;You need to connect the tables YearlyForecast with Calendar in order for my code to work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt; in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 11:45:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4811566#M184000</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-08-29T11:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: issue with SUMMARIZECOLUMNS in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4814482#M184089</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="64728" data-lia-user-login="arq52" class="lia-mention lia-mention-user"&gt;arq52&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1287762" data-lia-user-login="FBergamaschi" class="lia-mention lia-mention-user"&gt;FBergamaschi&lt;/a&gt;&amp;nbsp;Thanks for your inputs.&lt;/P&gt;
&lt;P&gt;I hope the information provided by users was helpful. If you still have questions, please don't hesitate to reach out to the community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2025 11:04:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4814482#M184089</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-09-02T11:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: issue with SUMMARIZECOLUMNS in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4817746#M184203</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="64728" data-lia-user-login="arq52" class="lia-mention lia-mention-user"&gt;arq52&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to check if you had the opportunity to review the information provided by user. Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 06:36:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4817746#M184203</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-09-05T06:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: issue with SUMMARIZECOLUMNS in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4821975#M184302</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="64728" data-lia-user-login="arq52" class="lia-mention lia-mention-user"&gt;arq52&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 05:58:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4821975#M184302</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-09-10T05:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: issue with SUMMARIZECOLUMNS in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4828910#M184473</link>
      <description>&lt;P&gt;Good evening,&lt;BR /&gt;Back from holidays. It doesn't work as there is "dupplicate values" in these both tables. I've tried to add a new table with unique years, and connect it to my calendar and to my YearlyForecast tables ; it doesn't work too.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 21:12:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4828910#M184473</guid>
      <dc:creator>arq52</dc:creator>
      <dc:date>2025-09-17T21:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: issue with SUMMARIZECOLUMNS in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4831465#M184543</link>
      <description>&lt;P&gt;I've been able to solve my issue by adding CROSSJOIN&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR Table_Year_Month_Week =
    ADDCOLUMNS (
        CROSSJOIN (
            SUMMARIZE ( Calendar; Calendar[Year]; Calendar[Month number]; Calendar[YYCW] );
            VALUES ( Items[Item] )
        );
        "Year_fcst";
            VAR CurrentYear = Calendar[Year]
            VAR CurrentItem = Items[Item]
            RETURN
                CALCULATE (
                    SUM ( 'YearlyForecasts'[Yearly Quantity] );
                    'YearlyForecasts'[Year] = CurrentYear;
                    Items[Item] = CurrentItem
                );
        "Month_pct";
            VAR CurrentYear = Calendar[Year]
            VAR CurrentMonth = Calendar[Month number]
            VAR CurrentItem = Items[Item]
            VAR CurrentDpt =
                CALCULATE ( MIN ( Items[Dpt] ); Items[Item] = CurrentItem )
            VAR pct =
                CALCULATE (
                    MIN ( 'AllocationPerMonthDpt'[pct] );
                    'AllocationPerMonthDpt'[Dpt] = CurrentDpt;
                    'AllocationPerMonthDpt'[Year] = CurrentYear;
                    'AllocationPerMonthDpt'[Month number] = CurrentMonth
                )
            RETURN
                IF ( ISBLANK ( pct ); 0; pct );
        "Month_WD";
            VAR CurrentYear = Calendar[Year]
            VAR CurrentMonth = Calendar[Month number]
            RETURN
                CALCULATE (
                    SUM ( Calendar[working day] );
                    ALL ( Calendar );
                    Calendar[Year] = CurrentYear;
                    Calendar[Month number] = CurrentMonth
                );
        "Week_WD";
            VAR CurrentYear = Calendar[Year]
            VAR CurrentMonth = Calendar[Month number]
            VAR CurrentWeek = Calendar[YYCW]
            RETURN
                CALCULATE (
                    SUM ( Calendar[working day] );
                    ALL ( Calendar );
                    Calendar[Year] = CurrentYear;
                    Calendar[Month number] = CurrentMonth;
                    Calendar[YYCW] = CurrentWeek
                )
    )
VAR result=
    SUMX (
        Table_Year_Month_Week;
        [Year_fcst] * [Month_pct] * [Week_WD] / [Month_WD]
    )
RETURN
    result&lt;/LI-CODE&gt;&lt;P&gt;Thanks for having tryed to help me.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Sep 2025 15:47:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4831465#M184543</guid>
      <dc:creator>arq52</dc:creator>
      <dc:date>2025-09-21T15:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: issue with SUMMARIZECOLUMNS in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4832016#M184567</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="64728" data-lia-user-login="arq52" class="lia-mention lia-mention-user"&gt;arq52&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It's great to hear that, and thank you for sharing the solution it will definitely be helpful for others facing the same issue. Please reach out to the community if you have any other questions; we're happy to assist you.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 08:41:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/issue-with-SUMMARIZECOLUMNS-in-a-measure/m-p/4832016#M184567</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-09-22T08:41:44Z</dc:date>
    </item>
  </channel>
</rss>

