Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |