Forum Discussion

MrLanla's avatar
MrLanla
New Member
5 years ago
Solved

input data range condition with another table

hi , i want to make "new column" in power bi Desktop with related to another table with range condition    first i have releatioship them and what next? for example i have two table 1.    ...
  • ryan_mayu's avatar
    5 years ago

    MrLanla 

    you can try this

    Grade = 
    
    VAR _order=MINX(FILTER(Gradegroup,Gradegroup[Order]>'Table'[order]),Gradegroup[Order])
    return maxx(FILTER('Gradegroup',Gradegroup[Order]=_order),Gradegroup[Grade])

    pls see the attachment below