Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Stuck in DAX: Create calculated table from date based last values and join sum

I have StockByDate Fact table which is populated by date. The cols are StockValue,ProductID and Date. I have salesItem Fact table with cols ProductID, Date and Sale Quantity. Bothe table are joined...
  • stevedep's avatar
    stevedep
    6 years ago

    This would be your code (on the order-item table) to add a new calculated column;

    Orderdate = LOOKUPVALUE('fact-Order'[Date];'fact-Order'[Order];'Fact-OrderItem'[Order])

     

    Please mark as resolved if this works for you.