Hi,
I have a data table "Tbl_Allo" with a couple of thousand records but the below table is a good example subset of the data.
What I need to achieve, preferably with a formula but happy to use power query (but not VB), is a way to recreate the table a specific n number of times (n = a variable named value "Val_Repeat" ), however I need the Period value to increment at each replication up to a maximum of 12.
I have already created a horrifically long formula (takes up nearly the whole screen) with a mixture of LET, FILTER, VSTACK and HSTACK functions but I would like a more efficient way of producing the replicated data.
Would prefer to do it in a single formula. Note, because the data contains the # it caused a problem with earlier versions of the formula that used the sequence function.
Hoping someone can suggest a way to do this with a single formula and output to a single spill dataset.
Thank you
I have a data table "Tbl_Allo" with a couple of thousand records but the below table is a good example subset of the data.
In | Out | Ref | Rate | Year | Period |
AAA | A1 | 1A | 0.0001 | 2026 | 01 |
BBB | # | 1B | 0.0467 | 2026 | 01 |
CCC | # | 1C | 0.1727 | 2026 | 01 |
DDD | D1 | 1D | 0.1722 | 2026 | 01 |
AAA | A1 | 1A | 0.5314053 | 2027 | 01 |
BBB | # | 1B | 0.0424033 | 2027 | 01 |
CCC | C1 | 1C | 0.0157139 | 2027 | 01 |
DDD | D1 | 1D | 0.0000541 | 2027 | 01 |
What I need to achieve, preferably with a formula but happy to use power query (but not VB), is a way to recreate the table a specific n number of times (n = a variable named value "Val_Repeat" ), however I need the Period value to increment at each replication up to a maximum of 12.
I have already created a horrifically long formula (takes up nearly the whole screen) with a mixture of LET, FILTER, VSTACK and HSTACK functions but I would like a more efficient way of producing the replicated data.
Would prefer to do it in a single formula. Note, because the data contains the # it caused a problem with earlier versions of the formula that used the sequence function.
Hoping someone can suggest a way to do this with a single formula and output to a single spill dataset.
Thank you
Last edited: