Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I'm using this DAX:
CurrentMonthSales = CALCULATE(SUM('SALES'[Europe]),PARALLELPERIOD('SALES'[Date],0,MONTH))
How can I modify the DAX statement to have data for the current month and YEAR (2023)?
Thanks in advance!
Solved! Go to Solution.
@Julia_Mav , Create a measure like
This year Today =
var _min = eomonth(today(),-1*month(today()))+1
var _max = eomonth(_min,12 ,-1*month(today()) )
return
CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
@Julia_Mav , Create a measure like
This year Today =
var _min = eomonth(today(),-1*month(today()))+1
var _max = eomonth(_min,12 ,-1*month(today()) )
return
CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
User | Count |
---|---|
102 | |
91 | |
87 | |
78 | |
71 |
User | Count |
---|---|
113 | |
105 | |
101 | |
75 | |
64 |