The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?
Solved! Go to Solution.
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]
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!
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |