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!View all the Fabric Data Days sessions on demand. View schedule
I have a page where I select the month and it display the Revenue for that Financial Month. Now the client want the following to determine commercially dead customers .
"If 14 consecutive months prior to Selected Month and including the selected month, there is 0 revenue each month - Then Include in Table"
Figure 1 - Formula for standard Revenue for the month
Revenue USD =
VAR ReferenceDate = MAX('Time'[Financial_Month] )
VAR _Revenue_USD = SUM ( 'FinanceData'[usd_revenue] )
RETURN IF ( _Revenue_USD>=0 && ReferenceDate="Current Month", _Revenue_USD, _Revenue_USD)
Is there a simple DAX way to do this ?
Solved! Go to Solution.
first calculate revenue for last 14 months
var daterange = LASTDATE( ( 'Date Table'[Date])
first calculate revenue for last 14 months
var daterange = LASTDATE( ( 'Date Table'[Date])
Do you have some example data without sensitve data?
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 5 | |
| 3 |
| User | Count |
|---|---|
| 28 | |
| 21 | |
| 20 | |
| 19 | |
| 12 |