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
Anonymous
Not applicable

Using Temporary Columns within Measure

Can someone please give me a quick explaination on why I can't use my [NextMonth] in the DateAdd funtion.

 

EVALUATE
ADDCOLUMNS (
    SUMMARIZE (
        Customers,
        Customers[CustomerKey],
        Customers[DateFirstPurchase],
        "Second Purchase",
            CALCULATE (
                FIRSTDATE ( Sales[OrderDate] ),
                FILTER ( Sales, Sales[OrderDate] > Customers[DateFirstPurchase] )
            ),
        "90 Day Date After First Purchase", Customers[DateFirstPurchase] + 90,
        "NextMonth", ENDOFMONTH ( Customers[DateFirstPurchase] ) + 1
    ),
    "Next3Months", DATEADD ( [NextMonth] , 3, MONTH ),
    "Within 90 Days",
        IF (
            [Second Purchase] > [DateFirstPurchase]
                && [Second Purchase] <= [90 Day Date After First Purchase],
            "Yes",
            "No"
        )

 

1 ACCEPTED SOLUTION
daXtreme
Solution Sage
Solution Sage

1 REPLY 1
daXtreme
Solution Sage
Solution Sage

daXtreme_0-1661980733158.png

daXtreme_1-1661980767693.png

 

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.