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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
mussaenda
Community Champion
Community Champion

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.