Forum Discussion

dhirendra59's avatar
dhirendra59
Icon for Helper I rankHelper I
6 years ago
Solved

Need help with Dax - calculate (pull) a value based on max date time aggregate to certain fields

  Hello All, I need help to create a measure to pull total on hand balance value agregated by warehouse and item number based on max date-time for that particular day with filter transaction t...
  • amitchandak's avatar
    6 years ago

    dhirendra59 , Have date column and try

     

    date = [transaction_datetime].date

    new measure = calculate(lastnonblankvalue(table[transaction_datetime],min(table[total_on_hand_balance])),allexcept(Table,Table[warehouse],Table[item_number], Table[transaction_identity], Table[Date]), Table[stock_transaction_type]=10)