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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Tatmel
Frequent Visitor

Balance sheet total. How to improve performance. Current measure works very slow

Hello,

I need some help with following issue. I have GL entry table with GL No, Amount, Posting Date and Index.

 

I also have calendar table where I have unique dates.

Based on two tables I created measure which helps me to represent balance sheet data per periods:

:Balance = calculate(sum(QGLEntry[Amount]);DATESBETWEEN('calendar'[Calendar Days];DATE(1950;01;01);ENDOFMONTH('calendar'[Calendar Days])))
When I am building matrix for the Balance sheet data with Rows structure (Category-Subcategory-GL No) and drill down to GL level, PBI run out of memory while calculating balance sheet data.
Can you help me with improving performance? I've tried to create a column with running total in GL entry table but faced with "not enough memory issue.
I have 16gb (RAM) on my pc.
 
Awaiting your bright solutions! 😉3.png2.png1.png

 

 

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @Tatmel ,

 

You could use VAR to define your filter at first.

And you could check if your Power BI is 64-bit version.

Make sure that no other software that consumes too much memory runs at the same time while running Power BI.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-eachen-msft ,

 

I have 64bit version of PBI installed on my PC.

Can you please show how new measure will look like by using VAR?

Current measure looks like this:

Balance = calculate(sum(QGLEntry[Amount]);DATESBETWEEN('calendar'[Calendar Days];DATE(1950;01;01);ENDOFMONTH('calendar'[Calendar Days])))
Thank you in advance!

Hi @Tatmel ,

 

You could refer to the following measure.

Balance =
VAR a =
    SUM ( QGLEntry[Amount] )
VAR b =
    DATESBETWEEN (
        'calendar'[Calendar Days];
        DATE ( 1950; 01; 01 );
        ENDOFMONTH ( 'calendar'[Calendar Days] )
    )
RETURN
    CALCULATE ( a; b )

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-eachen-msft ,

 

I've tested your measure and noticed that it gave different result compare with initial measure I've used in my calculations.

When I added to my pbix I got negative balance for fixed assets which couldnt be possible.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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