Forum Discussion

mg-66's avatar
mg-66
Regular Visitor
4 years ago
Solved

Calculate Average from highest X values

Hello everyone, I am new to Power BI and could need your help.   I have a Dataset that consistes of many tables and looks now like this: Date Temp. ..... ..... 105,2 ..... ..... 103...
  • amitchandak's avatar
    4 years ago

    mg-66 , Create a column Rank

     

    R1= Rankx(Table, [Temp],,desc, dense)

     

    Then create a measure

     

    Averagex(filter(Table, Table[R1]<=2), Table[Temp])