Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
TestsUK
Frequent Visitor

How to Return the Latest Revisions only for Each Document

Hi All,
Good day..!
May I ask how can I return only latest revision of document:

TestsUK_0-1699405944380.png

 
This function defines all revisions and returns them in the table above. But I want to exclude all previous revision (A00, A01, A02) and to show only latest (A03):
 
LatestRevision =
CALCULATE(
    MAX('Aconex Workflow'[DocumentRevision]),
    FILTER(
        ALL('Aconex Workflow'),
        'Aconex Workflow'[DocumentNumber] =
            MAXX(
                FILTER('Aconex Workflow', 'Aconex Workflow'[DocumentNumber] <> BLANK()),
                'Aconex Workflow'[DocumentNumber]
            )
        && 'Aconex Workflow'[DocumentRevision] =
            MAX('Aconex Workflow'[DocumentRevision])
    ))
3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Do you want a Query Editor solution or a DAX measure solution.  Also, share data in a format that can be pasted in an MS Excel file and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Kishore_KVN
Super User
Super User

Hello @TestsUK ,

Creating new column using that revision column, using below DAX

Version number = Right(Latest_Version,2) and change its data type to whole number. 

 

Then create you MAXX calculation on that column. 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Hello 

 

Is returns an error when i try change data type.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.