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
Consider the below table
| id | date | budget |
| 101 | 01/06/2020 | 50 |
| 101 | 01/07/2020 | 100 |
| 103 | 01/06/2020 | 50 |
| 103 | 01/07/2020 | 50 |
| 103 | 01/08/2020 | 20 |
I'm looking to create a measures
Desired output is a table as below
| last date | budget | |
| 101 | 01/07/2020 | 100 |
| 103 | 01/08/2020 | 20 |
Thank you in advance
Solved! Go to Solution.
Hi @giordafrancis ,
You can use this for Last Date
Last Date = CALCULATE(LASTNONBLANK('Table'[date],1) ,FILTER(ALL('Table'[id]), 'Table'[id] = MAX('Table'[id])))
and the above mentioned measure for Last Budget.
Last Budget =
lastnonblankvalue('Table'[date],sum('Table'[budget]))
Regards,
Harsh Nathani
Hi @giordafrancis ,
You can use this for Last Date
Last Date = CALCULATE(LASTNONBLANK('Table'[date],1) ,FILTER(ALL('Table'[id]), 'Table'[id] = MAX('Table'[id])))
and the above mentioned measure for Last Budget.
Last Budget =
lastnonblankvalue('Table'[date],sum('Table'[budget]))
Regards,
Harsh Nathani
@giordafrancis , use this for budget
lastnonblankvalue(Table[date],max(Table[budget]))
or
lastnonblankvalue(Table[date],sum(Table[budget]))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 11 | |
| 10 | |
| 8 |