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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Raja10ram
Helper I
Helper I

“Query has exceeded the available resources” in Power BI

Hi everyone,

I’m facing a performance issue in Power BI where the report throws the error “Query has exceeded the available resources” while loading visuals. we are using this DAX Calculation.

Opening Balance =

CALCULATE (SUM ( 'Ledger'[DBAMOUNT] ) - SUM ( 'Ledger'[CRAMOUNT] ),

    WINDOW (1,ABS,-1,REL,

            ALL ('Ledger'[date],'Ledger'[narriation],'Ledger'[voucher no]),

        ORDERBY ('Ledger'[date],1,'Ledger'[voucher no], 1)

    )

)

 

Raja10ram_0-1770301250123.png 

1 ACCEPTED SOLUTION

Hi @Raja10ram,

Thanks for the update.
Since the same error is still coming even after using the PostingIndex logic, this looks like a data volume and visual-level issue rather than a DAX syntax problem. The opening balance is getting calculated for every row shown in the visual, and when the ledger table is large or when the visual contains columns like date, voucher number, and narration together, Power BI has to scan too many rows and it runs out of resources. This usually happens in Pro or shared capacity also. For large ledger data, calculating opening or running balance using DAX at transaction level is not recommended. The better and stable approach is to calculate the running opening balance in Power Query or at the source after sorting by date and voucher, and then use it directly in the report. This should avoid the resource error.

Hope the above provided information help you resolve the issue, if you have any further concerns or queries, please feel free to reach out to us.
Regards,
Community Support Team.

View solution in original post

6 REPLIES 6
v-hjannapu
Community Support
Community Support

Hi @Raja10ram,

I would also take a moment to thank @cengizhanarslan  , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

Regards,
Community Support Team.

Hi @Raja10ram,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We are always here to support you.


Regards,
Community Support Team.

cengizhanarslan
Super User
Super User

Create a numeric PostingIndex in Power Query / source (date + voucher sequence), then:

Opening Balance =
VAR CurIdx = MAX ( 'Ledger'[PostingIndex] )
RETURN
CALCULATE (
    SUM ( 'Ledger'[DBAMOUNT] ) - SUM ( 'Ledger'[CRAMOUNT] ),
    FILTER ( ALL ( 'Ledger'[PostingIndex] ), 'Ledger'[PostingIndex] < CurIdx )
)
_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

Still we getting the same issue while we are using the above logic. @cengizhanarslan 

Raja10ram_0-1770610271367.png

 

Hi @Raja10ram,

Thanks for the update.
Since the same error is still coming even after using the PostingIndex logic, this looks like a data volume and visual-level issue rather than a DAX syntax problem. The opening balance is getting calculated for every row shown in the visual, and when the ledger table is large or when the visual contains columns like date, voucher number, and narration together, Power BI has to scan too many rows and it runs out of resources. This usually happens in Pro or shared capacity also. For large ledger data, calculating opening or running balance using DAX at transaction level is not recommended. The better and stable approach is to calculate the running opening balance in Power Query or at the source after sorting by date and voucher, and then use it directly in the report. This should avoid the resource error.

Hope the above provided information help you resolve the issue, if you have any further concerns or queries, please feel free to reach out to us.
Regards,
Community Support Team.

Hi @Raja10ram,
I hope the information shared above helps resolve your issue. If you still need any assistance or have more questions, please feel free to contact us. We are here to help.

Regards,
Community Support Team.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.