Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |