Forum Discussion

ankush-vem's avatar
ankush-vem
Frequent Visitor
4 years ago
Solved

DAX Calculation

Hi Team,  I need your help in writing a dax formula to get the result from table on the right hand side.    The Current table has a list of columns such as Date, No. of Shares, Close Price and Amo...
  • amitchandak's avatar
    4 years ago

    ankush-vem , Try a measure like

     

    measure =
    var _max = maxx(allselected('Date') ,[Date])
    var _price = calculate(Max(Table[price]), filter(allselected(Table), Table[Date] = _max))
    return
    sumx(Table, Table[No of shares] * _price )