Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |