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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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