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
CR7
Helper I
Helper I

ACCUMULATE CALCULATION

 

I have de following matrix with 2 Orders (A and B) with 2 lines of material per line

HOW TO CREATE THE "Total of Order" COLUMN THAT HAS IN EACH LINE THE TOTAL VALUE OF THE ORDER THAT IS EQUAL TO THE SUM OF THE PARTIAL VALUES OF EACH LINE OF THE ORDER

 

Order    lines       Value        Total of Order

A                 1            20                  30

A                 2            10                  30

B                 1              5                  20

B                 2             15                 20

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@CR7 ,

A new column

 

Sumx(filter(table, [Order] = earlier([Order])),[Value])

 

 

a new measure 

 

Sumx(filter(allselected(table), [Order] = max([Order])),[Value])

 

Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@CR7 ,

A new column

 

Sumx(filter(table, [Order] = earlier([Order])),[Value])

 

 

a new measure 

 

Sumx(filter(allselected(table), [Order] = max([Order])),[Value])

 

Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8

THANK YOU FOR YOUR HELP

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.