Forum Discussion

Mouse's avatar
Mouse
Frequent Visitor
2 years ago
Solved

Stumped with a calculated column

I want to created a calculated column, not a measure. I need the formula to filter within the table, to aproject, and then return the first nonblank sting from another column in the same table, us...
  • OwenAuger's avatar
    2 years ago

    Hi Mouse 

    Try this:

     

    First Progress = 
    CALCULATE (
        FIRSTNONBLANKVALUE (
            YourTable[Task Index],
            SELECTEDVALUE ( YourTable[Progress] ) -- auto context transition from FIRSTNONBLANKVALUE
        ),
        ALLEXCEPT ( YourTable, YourTable[ProjectId] )
    )

     

    The blank values in the Progress column must be genuinely blank (rather than empty strings) for this to work.

     

    Does it work as expected for you?