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.
Hi Everybody,
I need help to create a measure that counts the only the latest entry on a column, and is affected by my date slicer.sample data
For example, if a have a date slicer on the 30/11/2018, the measure will only count the id=2 entry, if the date is earlier than 23/11/2018 the measure will count the id = 1
Thanks
Vhar
Solved! Go to Solution.
Hi @Anonymous ,
Try this:
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
id select = var _dateselected = max(DateSlice[date]) var _lessdate = If (Max(DateSlice[date])<=_dateselected, MAX(DateSlice[id])) return _lessdate
Proud to be a Super User!
Hi @Anonymous ,
Try this:
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
id select = var _dateselected = max(DateSlice[date]) var _lessdate = If (Max(DateSlice[date])<=_dateselected, MAX(DateSlice[id])) return _lessdate
Proud to be a Super User!