Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone!
I need help with a DAX measure...
I have a time slicer:
I would like to have the following measure:
Measure= (Sales on 03/06/2019) - (Sales on 10/02/2020)*
Where Sales is a DAX complex measure.
Does anyone know how to do that?
*If other date is selected, the measure should change.
Thanks!
Solved! Go to Solution.
@Anonymous ,
A measure like this
measure =
var _min = minx(allselected(Date), Date[Date])
var _max = maxx(allselected(Date), Date[Date])
return
calculate([sales], filter(Date,Date[Date]= _min))-calculate([sales], filter(Date,Date[Date]= _max))
Assumed slicer is from date table
@Anonymous ,
A measure like this
measure =
var _min = minx(allselected(Date), Date[Date])
var _max = maxx(allselected(Date), Date[Date])
return
calculate([sales], filter(Date,Date[Date]= _min))-calculate([sales], filter(Date,Date[Date]= _max))
Assumed slicer is from date table
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
76 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |