I am working on a project with power automate.
And there is a related online excel which is not in a table as below structure:
| Invoice Number | Product ID | Amount |
106 | P1 | 100 |
| 106 | P1 | 200 |
| 106 | P2 | 200 |
| 107 | P3 | 300 |
| 107 | P3 | 150 |
I want to add two rows, one is a subtotal row for the same Invoice Number and same product ID, the other one is an empty row.
The result should be like:
| Invoice Number | Product ID | Amount |
106 | P1 | 100 |
| 106 | P1 | 200 |
| Total: | 300 | |
| 106 | P2 | 200 |
| Total: | 200 | |
| 107 | P3 | 300 |
| 107 | P3 | 150 |
| Total: | 450 |
How can I achieve the goal with Office Scripts?

Report
All responses (
Answers (