Forum Discussion

rbpercussion's avatar
rbpercussion
Regular Visitor
3 years ago
Solved

Create a column with rows based on earliest value in another column

I have the below table and want to create a column that has the first value of weight (152.6) for every row.  I plan on using this to create another measure that shows % increase decrease over time ...
  • Ashish_Mathur's avatar
    3 years ago

    Hi,

    Write these calculated column formulas

    Date time = Data[Date]+Data[Time]
    First weight = LOOKUPVALUE(Data[Weight],Data[Date time],CALCULATE(MIN(Data[Date time]),ALL(Data)))

    Hope this helps.