Forum Discussion

johanthedataman's avatar
johanthedataman
Frequent Visitor
7 years ago
Solved

Max Value for 2 Filters

Hi there,   I have a question. I have the following dataset: ID Code OpportunityID Modified YearMonth StageID 142 SF000020 20 4/10/19 2019/04 5 106 SF000020 20 4/4/19 2019/0...
  • Ashish_Mathur's avatar
    7 years ago

    Hi,

    Try this calculated column formula

    =CALCULATE(MAX(Data[StageID]),FILTER(Data,Data[Code]=EARLIER(Data[Code])&&Data[YearMonth]=EARLIER(Data[YearMonth])))

    Hope this helps.