The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |