Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Mr_Glister
Advocate II
Advocate II

Why is my table visual blowing out of memory?

Hi, 

I have a larger data model that I boiled down to the basics (pbix file size is 11.7MB) and I'm still getting performance issues in a matrix visual that I don't understand. The matrix visual started out with 12 measures but also that one I reduced to only 1 now to get to the bottom of the problem.

 

I'm also attaching a picture of my scaled-down data model. I have a date table, and three dimension tables (Customer, Location (think stores of each customer), and Unit (think departments of each store) which are linked to each other and to my fact table called Day_summaries, which holds daily averages of a particular sensor data. My fact table is linked by a Date field to the Date table and by Unit_ID (Day_summaries.UNIT_ID = Unit.UNIT_ID) to the other dimension tables.

 

Mr_Glister_5-1688551404171.png

 

And here is the DAX for the measure in the table:

7d avg raw CV =
VAR _lastdate = MAX( Day_summaries[DATE])
VAR _calc = CALCULATE( AVERAGE(Day_summaries[RAW CV]), DATESBETWEEN( 'Date table'[Date], _lastdate -6, _lastdate))
RETURN  _calc

 

Originally I had problems both with the visual loading very slowly (20seconds +) or not loading at all because it ran out of memory, especially once published to the PBI service. But for now I'd like to focus on the two questions below.

 

1) What could be the reason that the visual blows out of memory when I add both UNIT_ID from my fact table and UNIT_ID from my Unit table?

 

Only from fact table - Works ok

Mr_Glister_2-1688549769417.png

 

From fact and dim table - Not ok

Mr_Glister_3-1688550371947.png

 

Mr_Glister_3-1688546022113.png

 

2) In case you think the answer to 1) is "because it's the KEY between the two tables", why would the performance be so slow (62 seconds loading time, 8GB of RAM usage, about 50 rows in total, ) when I use other fields from the related Dimension tables?

Mr_Glister_4-1688551253401.png

I also include diagnostics from Vertipaq Analyzer.

 

DAX query of the table:

// DAX Query
DEFINE
    VAR __DS0FilterTable = 
        FILTER(
            KEEPFILTERS(VALUES('Day_summaries'[DATE])),
            AND(
                'Day_summaries'[DATE] >= DATE(2023, 6, 26),
                'Day_summaries'[DATE] < DATE(2023, 7, 6)
            )
        )

    VAR __DS0FilterTable2 = 
        FILTER(
            KEEPFILTERS(VALUES('Date table'[Date])),
            AND('Date table'[Date] >= DATE(2022, 4, 6), 'Date table'[Date] < DATE(2023, 7, 6))
        )

    VAR __DS0Core = 
        SUMMARIZECOLUMNS(
            ROLLUPADDISSUBTOTAL(
                ROLLUPGROUP('Day_summaries'[UNIT_ID], 'Location'[LOCATION NAME]), "IsGrandTotalRowTotal"
            ),
            __DS0FilterTable,
            __DS0FilterTable2,
            "v7d_avg_raw_CV", 'Day_summaries'[7d avg raw CV]
        )

    VAR __DS0PrimaryWindowed = 
        TOPN(
            502,
            __DS0Core,
            [IsGrandTotalRowTotal],
            0,
            'Day_summaries'[UNIT_ID],
            1,
            'Location'[LOCATION NAME],
            1
        )

EVALUATE
    __DS0PrimaryWindowed

ORDER BY
    [IsGrandTotalRowTotal] DESC, 'Day_summaries'[UNIT_ID], 'Location'[LOCATION NAME]

 

Mr_Glister_6-1688552013608.png

 

 

 

 

I really appreciate your help here because I can't see what the problem is!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.