Forum Discussion

FredrikJ's avatar
FredrikJ
Resolver I
1 year ago
Solved

Memory issue with Excel Pivot table connected to Semantic Models

Hi!   Since a couple of weeks ago we have a lot of Excel Pivot tables connected to Semantic Models that fails because we exceed the memory limit of 10 GB. We have not done any change to our Semanti...
  • FredrikJ's avatar
    FredrikJ
    1 year ago

    Hi!

     

    I have now downgraded the Excel version on my computer and can confirm that the problem is the Excel version. Version 16.0.18429.20132 was installed on my computer and now I have downgraded it to version 16.0.18227.20082.

     

    Our files that exceeded the 10 GB memory limit now only consume 50 MB.

     

    The MDX code generated in version 16.0.18429.20132 of Excel looked like this:

     

    SELECT

        NON EMPTY

            Hierarchize

            (

                DrillDownMember

                (

                    DrillDownMember

                    (

                        CrossJoin

                        (

                            {

                                [Product].[Article].[All],

                                [Product].[Article].[Article].ALLMEMBERS

                            },

                            {([Supplier].[Production Market].[All],[Size].[Size].[All])}

                        ),

                        [Product].[Article].[Article].ALLMEMBERS,

                        [Supplier].[Production Market]

                    ),

                    [Supplier].[Production Market].[Production Market].ALLMEMBERS,

                    [Size].[Size]

                )

            )

        DIMENSION PROPERTIES

            PARENT_UNIQUE_NAME,

            HIERARCHY_UNIQUE_NAME

         ON COLUMNS

    FROM

    (

        SELECT

            {

                [Time DIS].[Period DIS].&[Aug, 2025],

                [Time DIS].[Period DIS].&[Dec, 2025],

                [Time DIS].[Period DIS].&[Jul, 2025],

                [Time DIS].[Period DIS].&[Jun, 2025],

                [Time DIS].[Period DIS].&[May, 2025],

                [Time DIS].[Period DIS].&[Nov, 2025],

                [Time DIS].[Period DIS].&[Oct, 2025],

                [Time DIS].[Period DIS].&[Sep, 2025]

            } ON COLUMNS

        FROM [Model]

    )

    WHERE

        (

            [Product].[Collection].&[46 - Casual W],

            [Product].[Major Product Group].&[6 - Trousers],

            [Measures].[Ord Units]

        )

    CELL PROPERTIES

        VALUE,

        FORMAT_STRING,

        LANGUAGE,

        BACK_COLOR,

        FORE_COLOR,

        FONT_FLAGS;

     

    And the MDX code for the same Pivot table but in version 16.0.18227.20082 of Excel looks like this:

     

    SELECT 
        NON EMPTY 
            Hierarchize
            (
                CrossJoin
                (
                    {[Product].[Article].[Article].ALLMEMBERS},
                    {
                        (
                            [Supplier].[Production Market].[Production Market].ALLMEMBERS,
                            [Size].[Size].[Size].ALLMEMBERS
                        )
                    }
                )
            )
        DIMENSION PROPERTIES 
            PARENT_UNIQUE_NAME,
            HIERARCHY_UNIQUE_NAME
         ON COLUMNS
    FROM 
    (
        SELECT 
            {
                [Time DIS].[Period DIS].&[Aug, 2025],
                [Time DIS].[Period DIS].&[Dec, 2025],
                [Time DIS].[Period DIS].&[Jul, 2025],
                [Time DIS].[Period DIS].&[Jun, 2025],
                [Time DIS].[Period DIS].&[May, 2025],
                [Time DIS].[Period DIS].&[Nov, 2025],
                [Time DIS].[Period DIS].&[Oct, 2025],
                [Time DIS].[Period DIS].&[Sep, 2025]
            } ON COLUMNS
        FROM [Model]
    )
    WHERE 
        (
            [Product].[Collection].&[46 - Casual W],
            [Product].[Major Product Group].&[6 - Trousers],
            [Measures].[Ord Units]
        )
    CELL PROPERTIES 
        VALUE,
        FORMAT_STRING,
        LANGUAGE,
        BACK_COLOR,
        FORE_COLOR,
        FONT_FLAGS;