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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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