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.
I have a data table (Mytable) with Modified date column. I need to get the start and end parameters of the slider eg. points that are chosen (not the start/end of the scale).
I have tried this chosen start:
Solved! Go to Solution.
Hi, @Finnair
ChosenStart = CALCULATE(MIN(Mytable[Modified].[Date]), ALLSELECTED(Mytable[Modified].[Date]))
Is Mytable[Modified] the date field you are currently using?
You should use Mytable[Modified].[Date] rather than Mytable[Modified] here to get the chosen start and end points of time slider.
ChosenStart = MIN(Mytable[Modified])
ChosenEnd = Max(Mytable[Modified])
Please check my sample file for more details.
Best Regards,
Community Support Team _ Eason
@Finnair , Not very clear. Example to get mon nad max value on a range slicer
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date] >=_min && 'Table'[Date] <=_max))
Thank you @amitchandak
With your var_max I get maxdate correctly.
My slider is a "between" slider.
With var_min I don't get the mindate.
Hi, @Finnair
ChosenStart = CALCULATE(MIN(Mytable[Modified].[Date]), ALLSELECTED(Mytable[Modified].[Date]))
Is Mytable[Modified] the date field you are currently using?
You should use Mytable[Modified].[Date] rather than Mytable[Modified] here to get the chosen start and end points of time slider.
ChosenStart = MIN(Mytable[Modified])
ChosenEnd = Max(Mytable[Modified])
Please check my sample file for more details.
Best Regards,
Community Support Team _ Eason
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |