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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
TeunVerhagen
Frequent Visitor

PRODUCTX calculation on total level

Hi all,

 

I am dealing with the following issue:

 

My table consists of investmentID's and for every investment I calculated the returns (Dietz method). In order to link the returns per period to get the returns over a longer period I use the Modified Dietz method. This basically works by multiplying the returns per period. This is working fine on investment level by using PRODUCTX calculation. But...

 

Now I want to do this on portfolio level and this is going wrong because the PRODUCTX function multiplies all the returns per investment in stead of the total return of x period. Example:

 
 

Knipsel.JPG

 

When I use the PRODUCTX fomula on the returns it will multiply all returns on investment level. What I am looking for is a formula that will multiply the returns on period level so: 2.4 * 3 * 11 * 3.2 (in stead of 2*3*5*0.2 etc.).

 

Many thanks in advance. I hope there is a solution for this.

 

Kind regards,

 

Teun Verhagen



3 REPLIES 3
TeunVerhagen
Frequent Visitor

Thank you for your response!

 

Returns is indeed a measure. I have tried your method but it does not work unfortunately.

 

It has become a complex structure with a return calculation based on two tables: one table with start and end value per period and one table with transactions during the period. Those two tables are linked and the formula to measure return works fine.

 

The problem is that it keeps calculating the product per investment return in stead of the product of the return of multiple investment within a period. 

For readability, I would suggest to simply use SUMX(Values..

amitchandak
Super User
Super User

@TeunVerhagen , Assume returns is a measure. Try like

 

PRODUCTX (Values(Table[Period]),[Return])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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