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.
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"
)
Solved! Go to Solution.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |