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
LotteLaugesen
Helper V
Helper V

Sales of new products from the first expected sales date and 4 month ahead

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.

 

LotteLaugesen_0-1611653641072.png

 

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:

LotteLaugesen_2-1611654195693.png

Can anybody help?

Best regards

Lotte

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @LotteLaugesen 

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 

SU18_powerbi_badge

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @LotteLaugesen 

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 

SU18_powerbi_badge

Thank you so much - exactly what I needed 👏

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.