Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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.

  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi,

     

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

     

    Thanks for the help 🙂