Forum Discussion

MikDumb's avatar
MikDumb
Regular Visitor
4 years ago
Solved

Creating New Column in Data Set: Commercial Real Estate

Hello - I am creating a new report in PowerBi to try and capture the amount of time it takes my team to lease and build out a commerical space.  Eventually, I will want to filter this list into two b...
  • ryan_mayu's avatar
    ryan_mayu
    4 years ago

    MikDumb 

    pls try this

    Column = 
    VAR _min=CALCULATE(min('Table'[Leasing Date]),ALLEXCEPT('Table','Table'[SpaceID]))
    VAR _max=CALCULATE(max('Table'[Leasing Date]),ALLEXCEPT('Table','Table'[SpaceID]))
    return if('Table'[Leasing Date]=_min,"Initial Buildout",if('Table'[Leasing Date]=_max,"Retananting"))