cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mussaenda
Super User
Super User

Cumulative Total With Multiple Entries per Date

I have tried to use solutions from different threads but nothing solved my issue.

We need to show the cumulative total of the Sales - Purchases.

I have tried something like this

Cumulative Total = CALCULATE(
SUM('Table'[SALES-PURCHASES]),
FILTER(ALL('Date Table'),
'Date Table'[Date]<=MAX('Date Table'[Date])

but I am getting an error. I assumed it is because I have multiple entries per date.

The concept is like a bank statement or a cashflow.

I tried to use an index but I got this error.

2019_08_19_10_08_24_CashFlow_v1_Power_BI_Desktop.png

 

I am attaching a dummy pbix here

 

for the dummy file, adding index is working fine. Dummy file consists of only 7 days. But when I used it in my original report, which has everything from 01/01/2019 up to today,

it is showing error.

 

Thank you

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@mussaenda ,

 

Please check if power bi has been updated to the latest version. And based on your description, this issue will should be related to the database settings. Please contack the database DBA and confirm if there's some issue in database.

 

Similar threads below for your reference:

https://community.powerbi.com/t5/Desktop/Locking-conflict-error-message-when-trying-to-import-data-f...

https://community.powerbi.com/t5/Desktop/Locking-conflict-error-while-connecting-Oracle-database/td-...

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@mussaenda ,

 

Please check if power bi has been updated to the latest version. And based on your description, this issue will should be related to the database settings. Please contack the database DBA and confirm if there's some issue in database.

 

Similar threads below for your reference:

https://community.powerbi.com/t5/Desktop/Locking-conflict-error-message-when-trying-to-import-data-f...

https://community.powerbi.com/t5/Desktop/Locking-conflict-error-while-connecting-Oracle-database/td-...

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.