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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jaliu1290
Frequent Visitor

Total of all transactions related to one item type

Hello Power BI Community!!

I have a table of Items, Amounts, and associated Transaction IDs and would like a measure to calculate the Expected Outcome.

 

ItemAmountTransactionExpected Outcome (Total of All Transactions)
Square5ABC60
Circle10ABC35
Triangle20ABC80
Square5DEF60
Triangle20DEF80
Triangle20HIJ80

 

Transaction total for ABC = 35, DEF = 25, and HIJ = 20.


Therefore, if want to be able to slice by Square, then I want it to retrieve Transactions ABC and DEF that contained Square items, but then finally sum the entire total amount of those Transactions.

 

Thanks in advance,

 

Jamie

1 REPLY 1
ThxAlot
Super User
Super User

ThxAlot_0-1734797571448.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.