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

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

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
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.