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.
Hi,
I am looking to get sum of quantity by using following dax.
Solved! Go to Solution.
@Anonymous , If no date is selected
or
2nd Last Month Today =
var _today =maxx( allselected('Reporting Dates') , 'Reporting Dates'[Date])
var _min = eomonth(_today,-3)+1
var _max = eomonth(_today,-2)
return CALCULATE([Qty], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
2nd Last Month Today =
var _min = eomonth(today(),-3)+1
var _max = eomonth(today(),-2)
return CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
Last Month Today =
var _min = eomonth(today(),-2)+1
var _max = eomonth(today(),-1)
return CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
@Anonymous ,
try this
Two month back sales =
CALCULATE (
[Qty],
FILTER (
'Dates',
MONTH ( 'Dates[Date] )
= MONTH ( MAX ( Reporting Dates] ) ) - 2
)
)
Thanks,
Arul
@Anonymous , If no date is selected
or
2nd Last Month Today =
var _today =maxx( allselected('Reporting Dates') , 'Reporting Dates'[Date])
var _min = eomonth(_today,-3)+1
var _max = eomonth(_today,-2)
return CALCULATE([Qty], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
2nd Last Month Today =
var _min = eomonth(today(),-3)+1
var _max = eomonth(today(),-2)
return CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
Last Month Today =
var _min = eomonth(today(),-2)+1
var _max = eomonth(today(),-1)
return CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
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 |
---|---|
143 | |
79 | |
63 | |
52 | |
47 |
User | Count |
---|---|
217 | |
89 | |
76 | |
66 | |
60 |