Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi
I need to calculate the number of Kilos sold after Expected selling start date for each product in New Products table.
Invoice Date is date of selling.
There is relations between:
Dim_Calendar/Date and Sales/Invoice Date
Dim_Calendar/Date and New Products/Expected selling start date
Dim_Items/Item number and Sales/Item Number
Dim_Items/Item number and New Products/Item number
The report should look like this:
Can anybody help?
Best regards
Lotte
Solved! Go to Solution.
Measure =
VAR startDate_ =
SELECTEDVALUE ( NewProducts[Expected selling start date] )
VAR endDate_ =
EDATE ( startDate_, 4 )
RETURN
CALCULATE (
SUM ( Sales[Kilos] ),
Sales[Invoice date] >= startDate_ && Sales[Invoice date] <= endDate_
)
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Measure =
VAR startDate_ =
SELECTEDVALUE ( NewProducts[Expected selling start date] )
VAR endDate_ =
EDATE ( startDate_, 4 )
RETURN
CALCULATE (
SUM ( Sales[Kilos] ),
Sales[Invoice date] >= startDate_ && Sales[Invoice date] <= endDate_
)
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Thank you so much - exactly what I needed 👏
User | Count |
---|---|
10 | |
8 | |
5 | |
5 | |
4 |