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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
BasN
Frequent Visitor

Cummulative calculation (add indexing price) per day

Hello,

The idea is to cummulative multiply the index per day (in the left table) with the Deal Price with the days between StartDate and EndDate (this is a reference date).
So that you get a new column in the right table with the name "Indexed Deal Price on reference date". Is this possible?

Schermafbeelding 2024-01-19 212131.png

 

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

Is this what you mean?

 

Indexed Deal Price on reference date =
VAR _Start = RightTable[StartDate]
VAR _End = RightTable[EndDate]
VAR _FilterLeft_ =
    FILTER (
        LeftTable,
        LeftTable[Dates] >= _Start
            && LeftTable[Dates] <= _End
    )
VAR _Product =
    PRODUCTX (
        _FilterLeft_,
        1 + LeftTable[Index per day]
    )
RETURN
    _Product * RightTable[Deal Price]

 

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

Is this what you mean?

 

Indexed Deal Price on reference date =
VAR _Start = RightTable[StartDate]
VAR _End = RightTable[EndDate]
VAR _FilterLeft_ =
    FILTER (
        LeftTable,
        LeftTable[Dates] >= _Start
            && LeftTable[Dates] <= _End
    )
VAR _Product =
    PRODUCTX (
        _FilterLeft_,
        1 + LeftTable[Index per day]
    )
RETURN
    _Product * RightTable[Deal Price]

 

Thank you very much Alexis, I think this is what I was looking for!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.