Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Fill future dates with latest data and Filter Dates across two tables

Hello,   Hopefully someone can help!   I'm trying to calculate the amount of used storage available in our Vcenter over time, and then forecast this against customer contract termination dates. I...
  • lbendlin's avatar
    lbendlin
    4 years ago

    Something like this?

    M_Capacity = 
    var d = max(DIM_Date[Date])
    var m = CALCULATE(max(FACT_VM[Date]),FACT_VM[Date]<=d)
    var s= CALCULATE(sum(FACT_VM[StorageUsageGB]),FACT_VM[Date]=m)
    return if(d<SELECTEDVALUE(DIM_Customer[NextTerminationDate]),s)

     

    See attached.