Forum Discussion

Nourhassan's avatar
Nourhassan
Icon for Helper I rankHelper I
4 years ago

Calculate Change by previous row value

Hello,

 

I need to calculate the load change hourly, so how the load is changed from time to time per percentage like the table below. 

 

I have a table with a TIME (From 0 to 23) Column and Load value. Based on that i need to calculate the change in percentage. The Load Change in Time 0 should be here empty like shown in the above screenshot. The load change in Time 1:00 was calculated here as  follows: [(1963.935 - 1986.167) / 1963.935]. 

 

 

Thank you in advance.

 

23 Replies

  • Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with.

  • hello lbendlin,

     

    is that helpful? Or do you need it as excel file?

     

    R_TIMELOAD
    0795
    1724
    2697
    3677
    4667
    5658
    6734
    7692
    8707
    9728
    10756
    11766
    12764
    13730
    14725
    15780
    16779
    17781
    18881
    19860
    20838
    21837
    22837
    23811

     

      • Nourhassan's avatar
        Nourhassan
        Icon for Helper I rankHelper I

        I think you have made a mistake with the number to divide. The dividend should be the first number of Subtraction (Minuend).

  • To know to which date the data is from. Maybe, later the dataset will be extended with other dates too. Then I can compare both dates with each other. 

      • Nourhassan's avatar
        Nourhassan
        Icon for Helper I rankHelper I

        Thank you for your help. I really dont know what the problem is. This is my table below:

         

         

         

         

  • Hello, 

     

    Is it possible to add this column to another table without any relationship?

    • lbendlin's avatar
      lbendlin
      Icon for Super User rankSuper User

      I don't understand what you are trying to accomplish. Please elaborate.

      • Nourhassan's avatar
        Nourhassan
        Icon for Helper I rankHelper I

        I have these two tables below:

         

         

         

        I have a Report with a new Calculation, named "Expected Demand" which multiply the "Load Change" from Table DailyLoad with "Switch_MW"  from Table ENS. Both tables are not in relationship. I don't know how to handle this. 

         

        Expected Demand (MW)
        Switch MW*Load change %

         

        The Load change in the Calculation "Expected Demand" has to be chosen from the correct timezone in Table dailyload.

         

        It is more clear now?