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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
majid_75
Helper I
Helper I

Total Cumul Outstanding Dax

Hi,

 

I have a table wiht data Outstanding:

DateCode TradeOutstandingResult : Cumul 
01/01/2022A500650
02/01/2022A500650
03/01/2022A500650
04/01/2022A500650
05/01/2022A500550
01/01/2022B50650
02/01/2022B50650
03/01/2022B50650
04/01/2022B50650
05/01/2022B50550
01/01/2022C100650
02/01/2022C100650
03/01/2022C100650
04/01/2022C100650

 

I try to create a measure that allows to accumulate the outstanding over 5 years in daily (like in the column "Result:Cumul").

An idea pls?

Thnks

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

Hi @majid_75 ,

 

Please try:

Result:Cuml = CALCULATE(SUM('Table'[Outstanding]),FILTER(ALL('Table'),[Date]=MAX([Date])))

Output:

vjianbolimsft_0-1662017285735.png

Besides, it seems that you want accumulate the outstanding over 5 years in daily, the result is different from Result:Cumul. If you want accumulate the outstanding over 5 years in daily, please try:

Over 5 Years = CALCULATE(SUM('Table'[Outstanding]),FILTER(ALL('Table'),[Date]<=MAX('Table'[Date])&&[Date]>=EDATE(MAX('Table'[Date]),-60)))

Output:

vjianbolimsft_1-1662017706768.png

Best Regards,

Jianbo Li

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

5 REPLIES 5
v-jianboli-msft
Community Support
Community Support

Hi @majid_75 ,

 

Please try:

Result:Cuml = CALCULATE(SUM('Table'[Outstanding]),FILTER(ALL('Table'),[Date]=MAX([Date])))

Output:

vjianbolimsft_0-1662017285735.png

Besides, it seems that you want accumulate the outstanding over 5 years in daily, the result is different from Result:Cumul. If you want accumulate the outstanding over 5 years in daily, please try:

Over 5 Years = CALCULATE(SUM('Table'[Outstanding]),FILTER(ALL('Table'),[Date]<=MAX('Table'[Date])&&[Date]>=EDATE(MAX('Table'[Date]),-60)))

Output:

vjianbolimsft_1-1662017706768.png

Best Regards,

Jianbo Li

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

 

majid_75
Helper I
Helper I

For exemple, the 01/01/2022 is A + B +C = 650, etc... the 05/01/2022 is A+B=550

You don't need any DAX for that. Power BI offers automatic aggregation.

lbendlin_0-1661806798605.png

lbendlin_1-1661806905684.png

 

 

see attached.

 

majid_75
Helper I
Helper I

I try to create a measure that allows me to cumulate the Outstanding according to the code.

I try to create a measure that allows me to cumulate the Outstanding according to the code.
The result I want is the Result column

Thks

lbendlin
Super User
Super User

Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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