Forum Discussion
Nourhassan
Helper I
4 years agoCalculate 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 an...
Nourhassan
Helper I
4 years agoUnfortunately, I don't have permission to upload the .pbix file here.
Kindly find below a table with more data.
| R_DATE | R_TIME | LOAD |
| 12/01/2021 | 0 | 795 |
| 12/01/2021 | 1 | 724 |
| 12/01/2021 | 2 | 697 |
| 12/01/2021 | 3 | 677 |
| 12/01/2021 | 4 | 667 |
| 12/01/2021 | 5 | 658 |
| 12/01/2021 | 6 | 734 |
| 12/01/2021 | 7 | 692 |
| 12/01/2021 | 8 | 707 |
| 12/01/2021 | 9 | 728 |
| 12/01/2021 | 10 | 756 |
| 12/01/2021 | 11 | 766 |
| 12/01/2021 | 12 | 764 |
| 12/01/2021 | 13 | 730 |
| 12/01/2021 | 14 | 725 |
| 12/01/2021 | 15 | 780 |
| 12/01/2021 | 16 | 779 |
| 12/01/2021 | 17 | 781 |
| 12/01/2021 | 18 | 881 |
| 12/01/2021 | 19 | 860 |
| 12/01/2021 | 20 | 838 |
| 12/01/2021 | 21 | 837 |
| 12/01/2021 | 22 | 837 |
| 12/01/2021 | 23 | 811 |
The problem only occurs when the date column is added. I think the problem is that it is the same day in each row.
lbendlin
Super User
4 years agoYour sample data is not fully covering your issue. Provide at least two days' worth of hourly snapshots.
- Nourhassan4 years ago
Helper I
The issue is that I only have the data for one day and the idea is to calculate the change in hours for one day.
- lbendlin4 years ago
Super User
Please explain why you need to add the date column in that scenario.