Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi All,
I want to filter distinct values in ID Column which has MAX value in Version column. Any Suggestions would help me a lot.
ID Version
1001 1
1001 2
1001 5
1005 1
1008 2
1005 2
1003 2
1004 1
1003 1
1006 1
1008 1
1001 3
1001 4
Thanks
MANOHAR
Solved! Go to Solution.
Hi @Manohar_Sathya ,
Try this:
Max Value Column 1 =
CALCULATE ( MAX ( 'Table'[Version] ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
Max Value Column 2 =
CALCULATE (
MAX ( 'Table'[Version] ),
FILTER ( 'Table', 'Table'[ID] = EARLIER ( 'Table'[ID] ) )
)
Max Value Measure 1 =
CALCULATE ( MAX ( 'Table'[Version] ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
Max Value Measure 2 =
IF (
ISFILTERED ( 'Table'[ID] ),
CALCULATE (
MAX ( 'Table'[Version] ),
FILTER ( 'Table', 'Table'[ID] = MAX ( 'Table'[ID] ) )
),
MAX ( 'Table'[Version] )
)
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
Hi @Manohar_Sathya ,
Try this:
Max Value Column 1 =
CALCULATE ( MAX ( 'Table'[Version] ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
Max Value Column 2 =
CALCULATE (
MAX ( 'Table'[Version] ),
FILTER ( 'Table', 'Table'[ID] = EARLIER ( 'Table'[ID] ) )
)
Max Value Measure 1 =
CALCULATE ( MAX ( 'Table'[Version] ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
Max Value Measure 2 =
IF (
ISFILTERED ( 'Table'[ID] ),
CALCULATE (
MAX ( 'Table'[Version] ),
FILTER ( 'Table', 'Table'[ID] = MAX ( 'Table'[ID] ) )
),
MAX ( 'Table'[Version] )
)
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
It is accepted even as a table which looks like the below one;
ID Version
1001 5
1005 2
1008 2
1004 1
1003 2
1006 1
Even an additional Column or a measure would work for me.
Can you show me the expected results based on your sample data?
Do you need a table as an output or a measure?
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
ID Version
1001 5
1001 5
1001 5
1005 2
1008 2
1005 2
1003 2
1004 1
1003 2
1006 1
1008 2
1001 5
1001 5
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |