Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hey all;
I'm trying to create a real time DSI and having difficulty on the last 90 days measure.
Here is my measure below, and it "passes" however I get the following error.
is there another "dates" DAX variable I should be using to get my last 90 days of sales?
Solved! Go to Solution.
Thanks to GPT :)... got it to work. For FYI:
this pulls passes, and does not error.
Thanks to GPT :)... got it to work. For FYI:
this pulls passes, and does not error.
@Gumberculeez , if you need based on today
Last 90 =
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min = _max -90
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
or
Last 90 =
var _max = today()
var _min = _max -90
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
or
Last 90 =
var _max = today()
var _min = _max -90
return
CALCULATE([net] ,filter('Date','Date'[Date]>= _min && 'Date'[Date] <= _max))
Both of those generate the same error.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 21 | |
| 20 | |
| 12 |
| User | Count |
|---|---|
| 58 | |
| 55 | |
| 42 | |
| 36 | |
| 35 |