Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I'm currently working on a Dashboard where I need to pick the latest value for one category, with the ability to use a time slicer and then get the latest value within the range of the filter. The case is as follows::
| ID1 | Date | Value |
| A | 01-Jan-22 | 4 |
| A | 03-Mar-22 | 5 |
| A | 04-Apr-22 | 3 |
| B | 02-Feb-22 | 7 |
| C | 04-Mar-22 | 9 |
| C | 05-Jul-22 | 7 |
Let's say I have the above table. What I need is to just present the latest row for each ID, i.e.:
| ID1 | Date | Value |
| A | 04-Apr-22 | 4 |
| B | 02-Feb-22 | 7 |
| C | 05-Jul-22 | 7 |
But I had a date slicer, with an end date on 5 May, the result would be:
| ID1 | Date | Value |
| A | 04-Apr-22 | 4 |
| B | 02-Feb-22 | 7 |
| C | 04-Mar-22 | 9 |
And if the end of the range is set to 3 March, then it needs to present:
| ID1 | Date | Value |
| A | 03-Mar-22 | 5 |
| B | 02-Feb-22 | 7 |
What would be the best way to achieve this with DAX measures/calculated columns or tables?
Thanks!
Carlos
Solved! Go to Solution.
hi @carlosyanez
try to created two measures and plot a visual table with them.
the code:
hi @carlosyanez
try to created two measures and plot a visual table with them.
the code:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 11 | |
| 9 | |
| 8 |