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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
tkfisher
Frequent Visitor

Complex Compounding Interest Rates

Hi All,

 

I have a table with dates, "growth rates" and product keys. See snapshot below:

 

tkfisher_0-1654536077262.png

 

 

Each product category may have a different "growth rate" for each date, though you can only see Jan 2022 in this snapshot (it goes out 24 months).

 

Here is my equation. Unfortunately it looks like it sums up the entire calculation with my formula below.

 

Compounding Value =
VAR LatestDate =
MAX ( 'Collection Growth Table'[date] )
VAR UnfilteredTable =
ALL ( 'date table'[date] )
RETURN
CALCULATE (
PRODUCTX ( 'Collection Growth Table', 1 + 'Collection Growth Table'[Value] ),
FILTER (
ALL ( 'Collection Growth Table' ),
'Collection Growth Table'[Date] <= LatestDate
)
)

 

tkfisher_1-1654536313272.png

 

 

Ideally this would represent the compounding growth rate of each Quickname and Date. Any help would be greatly appreciated!

1 ACCEPTED SOLUTION
tamerj1
Community Champion
Community Champion

@tkfisher 

Ok. Please try

Compounding Value =
VAR DateQuickNameTable =
    CALCULATETABLE (
        'date table',
        ALLEXCEPT ( 'date table', 'date table'[Quickname] )
    )
VAR CurrentDate = 'Collection Growth Table'[date]
RETURN
    PRODUCTX (
        FILTER ( DateQuickNameTable, 'Collection Growth Table'[Date] <= CurrentDate ),
        1 + 'Collection Growth Table'[Value]
    )

View solution in original post

5 REPLIES 5
tamerj1
Community Champion
Community Champion

Hi @tkfisher 

"Ideally this would represent the compounding growth rate of each Quickname and Date."
My understanding is that, this is a unique column so what is the use of PRODUCTX? Why not "for each quick name" only? And where is the category you have mentioned at the begining of your post?

I might be mistaken but you may try

 

 

Compounding Value =
VAR DateQuickNameTable =
    CALCULATETABLE (
        'date table',
        ALLEXCEPT ( 'date table', 'date table'[Quickname] )
    )
VAR LatestDate =
    MAXX ( DateQuickNameTable, 'Collection Growth Table'[date] )
RETURN
    PRODUCTX (
        FILTER ( DateQuickNameTable, 'Collection Growth Table'[Date] <= LatestDate ),
        1 + 'Collection Growth Table'[Value]
    )

 

 

Apologies, should have been clearer. I have been trying a few things and so my DAX was getting mixed together. Here is realistically where I am at now:

 

Compounding Value =
VAR LatestDate =
MAX ( 'Collection Growth Table'[date] )
VAR UnfilteredTable =
ALL ( 'date table' )
RETURN
CALCULATE (
PRODUCTX ( 'Collection Growth Table', 1 + 'Collection Growth Table'[Value] ),
FILTER (
ALL ( 'Collection Growth Table' ),
'Collection Growth Table'[Date] <= LatestDate
)
)

 

Filtering on just one Quickname (apologies, I said category before but meant Quickname) shows my issue more clearly:

 

tkfisher_0-1654544594190.png

 

 

What I would like is a column that compounds the 'Value' column month over month, but does it separately for each Quickname.

Sorry was wrong on my DAX again.... here you go

 

Compounding Value =
VAR LatestDate =
MAX ( 'Collection Growth Table'[date] )
VAR UnfilteredTable =
ALL ( 'Collection Growth Table' )
RETURN
CALCULATE (
PRODUCTX ( 'Collection Growth Table', 1 + 'Collection Growth Table'[Value] ),
FILTER (
ALL ( 'Collection Growth Table' ),
'Collection Growth Table'[Date] <= LatestDate
)
)

tamerj1
Community Champion
Community Champion

@tkfisher 

Ok. Please try

Compounding Value =
VAR DateQuickNameTable =
    CALCULATETABLE (
        'date table',
        ALLEXCEPT ( 'date table', 'date table'[Quickname] )
    )
VAR CurrentDate = 'Collection Growth Table'[date]
RETURN
    PRODUCTX (
        FILTER ( DateQuickNameTable, 'Collection Growth Table'[Date] <= CurrentDate ),
        1 + 'Collection Growth Table'[Value]
    )

This works, thank you!

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.