Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Date of creation column is there to do the calculation.
Please help me to do the same using Date Between, Date Add functions.
Please
Used the following formula, Insteasd of 90 days, I want to add month number
Instead of writing
New Customer in Last 3 Months New = CALCULATE( DISTINCTCOUNT(Sales[CustomerCode]), DATESBETWEEN('Sales'[DateofOrder], TODAY()-90, TODAY() ) )
you should use the Date table
New Customer in Last 3 Months New = var __today = TODAY() var __90DaysBackFromToday = TODAY() - 90 + 1 -- yes, you have to add 1 var output = CALCULATE ( DISTINCTCOUNT( Sales[CustomerCode] ), DATESBETWEEN ( 'Dates'[Date], __90DaysBackFromToday, __today ) )
Best
Darek
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |