Forum Discussion
Create measure to identify most recent data (without date functions)
- 7 years ago
Hi Anonymous
Please always show your sample data in text-tabular format in addition to (or instead of) the screen captures. A screen cap doesn't allow people to readily copy the data and run a quick test and thus decreases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here. Or, ideally, share the pbix (beware of confidential data).
Try this:
1. Place GRoup and ID in the rows of a table visual
2. Place this measure in the visual
Measure = VAR LastVer_ = MAX ( Table1[VersionID] ) RETURN CALCULATE ( MAX ( Table1[Units] ), Table1[VersionID] = LastVer_ )Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers

Hi Anonymous
Please always show your sample data in text-tabular format in addition to (or instead of) the screen captures. A screen cap doesn't allow people to readily copy the data and run a quick test and thus decreases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here. Or, ideally, share the pbix (beware of confidential data).
Try this:
1. Place GRoup and ID in the rows of a table visual
2. Place this measure in the visual
Measure =
VAR LastVer_ =
MAX ( Table1[VersionID] )
RETURN
CALCULATE ( MAX ( Table1[Units] ), Table1[VersionID] = LastVer_ )
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers ![]()