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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Cumulative sum issue

Hi All,

 

I am facing few issues in cumulative sum:

Below is my fact table and i have created a calender dimension table for the same as below : 

 

Fact:

IDBA_IDAmountDate
111010/10/2010
212010/11/2010
313010/11/2010
414010/13/2010
515010/14/2010
616010/11/2010
727010/16/2010
828010/17/2010
929010/11/2010
10210010/19/2010
11211010/20/2010
12212010/21/2010
13213010/22/2010
14214010/23/2010
15315010/24/2010

 

Date
10/5/2010
10/6/2010
10/7/2010
10/8/2010
10/9/2010
10/10/2010
10/11/2010
10/12/2010
10/13/2010
10/14/2010
10/15/2010
10/16/2010
10/17/2010
10/18/2010
10/19/2010
10/20/2010
10/21/2010
10/22/2010
10/23/2010
10/24/2010

 

I have created a sum measure : total Amount = sum(fact(amount))

Then i am creating another measure for putting it on trend chart : 

Trend Sum = Calculate ([Total AMount],Filter (All(fact),fact(ba_id)=1),

Filter (values(date),date(date)<=max(date[date])))  

 

this is not giving me cumulative sum.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

All function does not fetch correct result in SSAS tabular modelling, i replaced Values with Allselected and it worked.

 

Thanks for the help 🙂

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

Refer

https://community.powerbi.com/t5/Desktop/Cumulative-Total/td-p/43115

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi,

 

All function does not fetch correct result in SSAS tabular modelling, i replaced Values with Allselected and it worked.

 

Thanks for the help 🙂

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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