Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Track realisation vs estimate per month

I have a dataset with planned sales per month and realised sales.

 

How can I make a measure the tracks the progress of the sales vs the planned sales? I think it's some kind of running total, but can't figure it out.

 

Somehow I need to find the maximum dat on which sales was made, and then see what sales was planned until that date.

 

  • Anonymous's avatar
    Anonymous
    3 years ago

    Can't share the PBI as this is confidential information.  But it looks like:

    DatePlannedRealised
    1-1-20231011
    1-2-202313 
    1-3-202312 

     

    In the mean time, I think I've figured it out:

     

    Planned till now = 
    VAR max_date = calculate(max(Date), Realised > 0)
    return
    calculate (sum(Planned), Date <= max_date)

2 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Can't share the PBI as this is confidential information.  But it looks like:

      DatePlannedRealised
      1-1-20231011
      1-2-202313 
      1-3-202312 

       

      In the mean time, I think I've figured it out:

       

      Planned till now = 
      VAR max_date = calculate(max(Date), Realised > 0)
      return
      calculate (sum(Planned), Date <= max_date)