Forum Discussion

Matt_Mohawk's avatar
Matt_Mohawk
Icon for Helper II rankHelper II
5 years ago
Solved

Latest Revision for Each Proposal Number

I am needing a "1" next to the latest revision for each Proposal #. Below is a screenshot showing some of the data that I am dealing with. The circled values are showing that these are the most recen...
  • v-kkf-msft's avatar
    v-kkf-msft
    5 years ago

    Hi Matt_Mohawk ,

    You can create a calculated column and use it as a filter in bar chart.

    Column = 
    var NewRevision = 
        CALCULATE(
            MAX('Table'[Revision #]),
            FILTER(
               'Table',
               'Table'[Proposal #] = EARLIER('Table'[Proposal #])
            )
        )
    var result = 
        IF( 'Table'[Revision #] = NewRevision, 1, 0 )
    return result

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

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