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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.