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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.