Forum Discussion

rrhutch's avatar
rrhutch
Helper II
9 years ago
Solved

Compare Rows to Return Value

I am a former Tableau user and I trying to figure out how to recrease a cacluated field from Tableau with DAX in PowerBI. The formula I was using in Tableau was:   If {fixed [Academic Year], [Acade...
  • Anonymous's avatar
    Anonymous
    9 years ago

    Hi rrhutch,

    Based on above sample data, firstly, create new column in Power BI Desktop using the formula below, then change the data type of newfield to Date/Time  using Data Type option under Modeling ribbon.

    newfield = CONCATENATE(Table[Date],CONCATENATE(" ",Table[Time]))

    Secondly, create a new column using the following formula.

    Result = IF(Table[newfield]=MAX(Table[newfield]), Table[Stage App Decision],"Null")

    Thirdly, create a table visual, see my example.

     

    Thanks,
    Lydia Zhang