Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Solved! Go to Solution.
Hi @Anonymous ,
If there's no other condition, you could simple use MAX('table'[date]) to get the maximum date.
If there are other conditions, you could use below formula:
max_date = CALCULATE(MAX('table'[date]),FILTER(ALLSELECTED('table'),condition))
Best Regards,
Jay
Hi @Anonymous ,
If there's no other condition, you could simple use MAX('table'[date]) to get the maximum date.
If there are other conditions, you could use below formula:
max_date = CALCULATE(MAX('table'[date]),FILTER(ALLSELECTED('table'),condition))
Best Regards,
Jay
@Anonymous ,
example how to get dates min/max
new measure =
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date] >=_min && 'Table'[Date] <=_max))
User | Count |
---|---|
98 | |
75 | |
74 | |
49 | |
26 |