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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |