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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Calculating Funds Under Management - Sum of Product

Hi there,

 

I'm working on a Funds Under Management model and have hit somewhat of a roadblock and what appreciate some help in solving the required DAX.

 

We have a model similar to the one below (The example is quite simplified):

FUM.PNG

 

An explanation of the tables:

  • Transactions: This is really the fact table, with the transactions, account no, transaction date and the running total as it would stand after the transaction.
  • Investor: This is the investor dimension, which would be used for grouping of accounts, multiple accounts can belong to the same investor.
  • Funds: This is the funds dimension, an account can only have one fund.
  • Fund Price: This table list the price of the funds on a given date, we don't always have a new price for every calendar date.
  • Reporting Date: This table would be used to report on the Funds Under Management at any given date.

The calculation of Funds Under Management can be done via two measure (not sure on this?):

  1. Summing the result of all the products of the last known running total of an account (from Transactions) and last known price for the corresponding fund (from Funds Price) at any given date (from Reporting Date)
  2. Do the same as method 1 but first sum the last known running totals grouped by the fund and then multiply by the last known price for the fund

 

These are my thoughts on going on about this, not sure if I'm doing this correctly or not, any and all help would be appreciated.

 

PBIX file with sample data: https://1drv.ms/u/s!AgRCl9UMoU6bgk-3d02tQqOA48oU

 

TIA

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

What is your desired reuslt? I have tested for your first problem but I could understand other issues:

and last known price for the corresponding fund (from Funds Price) at any given date (from Reporting Date)

Do the same as method 1 but first sum the last known running totals grouped by the fund and then multiply by the last known price for the fund

For the first issue about Summing the result of all the products of the last known running total of an account (from Transactions):

Create a Rank column:

Rank = COUNTROWS(FILTER('Transactions','Transactions'[Transaction Date]<=EARLIER(Transactions[Transaction Date])&&'Transactions'[Account]=EARLIER(Transactions[Account])))

1.PNG

Create below measures:

Measure = IF(CALCULATE(SUM(Transactions[Rank]))=CALCULATE(MAX('Transactions'[Rank]),FILTER(ALL('Transactions'),'Transactions'[Account]=MAX('Transactions'[Account]))),CALCULATE(SUM(Transactions[Running Total])),BLANK())
Sum = SUMX('Transactions',[Measure])

Result:

1.PNG

Could you please offer me more information and post your desired result if possible?

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
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

1 REPLY 1
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

What is your desired reuslt? I have tested for your first problem but I could understand other issues:

and last known price for the corresponding fund (from Funds Price) at any given date (from Reporting Date)

Do the same as method 1 but first sum the last known running totals grouped by the fund and then multiply by the last known price for the fund

For the first issue about Summing the result of all the products of the last known running total of an account (from Transactions):

Create a Rank column:

Rank = COUNTROWS(FILTER('Transactions','Transactions'[Transaction Date]<=EARLIER(Transactions[Transaction Date])&&'Transactions'[Account]=EARLIER(Transactions[Account])))

1.PNG

Create below measures:

Measure = IF(CALCULATE(SUM(Transactions[Rank]))=CALCULATE(MAX('Transactions'[Rank]),FILTER(ALL('Transactions'),'Transactions'[Account]=MAX('Transactions'[Account]))),CALCULATE(SUM(Transactions[Running Total])),BLANK())
Sum = SUMX('Transactions',[Measure])

Result:

1.PNG

Could you please offer me more information and post your desired result if possible?

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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