Forum Discussion

jereaallikko's avatar
jereaallikko
Helper III
6 years ago
Solved

How to link rows together in a same table?

Hi all,   I need help with linking rows together based on "Priority". I have created an excel table to visualize the problem;                 I have four "priority" rows (Floor of th...
  • Icey's avatar
    Icey
    6 years ago

    Hi jereaallikko ,

     

    How about create a column like so:

    Floor =
    VAR MaxEstHours =
        MAXX (
            FILTER ( 'Table', [Level ID] = EARLIER ( [Level ID] ) ),
            [Estimated Hours]
        )
    VAR MaxWorkHours =
        MAXX ( FILTER ( 'Table', [Level ID] = EARLIER ( [Level ID] ) ), [Worked Hours] )
    RETURN
        CALCULATE (
            FIRSTNONBLANK ( 'Table'[Topic], 0 ),
            FILTER (
                'Table',
                'Table'[Estimated Hours] = MaxEstHours
                    && 'Table'[Worked Hours] = MaxWorkHours
            )
        )
    

     

    Best Regards,

    Icey

     

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