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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Memory Problems

Hi dear Community,

I have a transactions table with more than 2M rows. 

This table has 6 columns:

   DateTime     Client     Units     Cost     Type of Transaction      Campaign

 

The "Types of Transactions" are 3:
-Exchange
-Redemption
-Accumulation 

 

Only the first two types of transactions have an associated campaign.

 

What I would like to know is:
-No. of Exchanges per Campaign
-Number of Redemptions per campaign
-How many times a customer comes after doing a redemption
-How many units a customer buys after the first redemption


The way I found was through a calculated table:

Units_After_First_Redemption =
ADDCOLUMNS(   
        addcolumns(
            summarize(
                FILTER(
                    'Transactions',
                    'Transactions'[Campaign] <> Blank()
                    ), 
            'Transacciones'[Client], 
            'Transacciones'[Campaign] ),
        "Exchange", [Date First Exchange],
        "Redemption", [Date First Redemption] ,
    ),
    'Transactions', 
    CALCULATE( 
        COUNTROWS( 'Transactions'),
            FILTER(
                ALLEXCEPT('Transactions', 'Transacciones'[Client]),
                [Redemption] <> BLANK() &&
                'Transactions'[Type of Transaction] = "Accumulation" &&
                'Transactions'[DateTime] >[Redemption] + time(0,10,0)
                )
            ),
    "Units",
    CALCULATE(
        SUM( 'Transactions'[Units] ),
        FILTER(
                ALLEXCEPT('Transactions', 'Transacciones'[Client]),
                [Redemption] <> BLANK() &&
                'Transactions'[Type of Transaction] = "Accumulation" &&
                'Transactions'[DateTime] >[Redemption] + time(0,10,0)
                )
      )        
    )

 

But this gives an error of not enough memory, so I was thinking of doing this in power query, since this will be fixed. It will only vary when new transactions are added.

 

Any idea how it will be possible to do this?

 

Thank you very much,

Simão

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello guys,

I found the solution in this link:
https://community.powerbi.com/t5/Power-Query/SUM-IFS-in-Power-Query-using-a-date-and-article-number-...

The performance is still not the best, but as I have made it into a DataFlow it doesn't affect the dashboard's performance.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hello guys,

I found the solution in this link:
https://community.powerbi.com/t5/Power-Query/SUM-IFS-in-Power-Query-using-a-date-and-article-number-...

The performance is still not the best, but as I have made it into a DataFlow it doesn't affect the dashboard's performance.

v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Plesae provide sanitized sample data that fully covers your issue and related measure formulas.

This will help us better understand the problem.

 

Best Regards,
Community Support Team _ Eason

 

croberts21
Continued Contributor
Continued Contributor

Take a look at this: https://blog.crossjoin.co.uk/2020/01/20/visual-has-exceeded-the-available-resources-error-power-bi/

 

It looks like memory limits can only be raised in PBI Premium. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.