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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Ho to get latest date data for all rows,
For example we only have data till 25th Feb'22, so i want to show the data for 24th Feb'22, and of we would have data for next any date then show that date Data only
Solved! Go to Solution.
Hi @Anonymous ,
I create a sample with a date column and a value column.
Then create a measure.
The latest data =
VAR _latest_date_1 =
MAX ( 'Table'[Date] )
VAR _latest_date_2 =
CALCULATE (
MAX ( 'Table'[Date] ),
FILTER ( ALL ( 'Table' ), 'Table'[Date] < _latest_date_1 )
)
RETURN
CALCULATE (
SUM ( 'Table'[values] ),
FILTER ( ALL ( 'Table' ), 'Table'[Date] = _latest_date_2 )
)
Drag measure into visual.
Attach the PBIX file for reference. Hope it helps.
If this doesn't work for you, please consider sharing more details about it. And it would be great if there was a sample file without any sensitive information here.
It makes it easier to give you a solution.
Best Regards,
Community Support Team_Gao
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi @Anonymous ,
I create a sample with a date column and a value column.
Then create a measure.
The latest data =
VAR _latest_date_1 =
MAX ( 'Table'[Date] )
VAR _latest_date_2 =
CALCULATE (
MAX ( 'Table'[Date] ),
FILTER ( ALL ( 'Table' ), 'Table'[Date] < _latest_date_1 )
)
RETURN
CALCULATE (
SUM ( 'Table'[values] ),
FILTER ( ALL ( 'Table' ), 'Table'[Date] = _latest_date_2 )
)
Drag measure into visual.
Attach the PBIX file for reference. Hope it helps.
If this doesn't work for you, please consider sharing more details about it. And it would be great if there was a sample file without any sensitive information here.
It makes it easier to give you a solution.
Best Regards,
Community Support Team_Gao
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
@Anonymous , Create this column in the date table and save that as the value in slicer /filter
Lastest = if([Date] = max(Table[Date]) , "Latest", [Date] )
Default Date Today/ This Month / This Year: https://www.youtube.com/watch?v=hfn05preQYA
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |