'I want to have a particular pattern of adding the data of a column in power BI

How do I add first 5 rows of a column and then add next 6 rows adjacent to it. After that I take next 5 rows of a column adjacent to 6 and then add next 6 rows adjacent to 5 rows taken previously. I want to continue this pattern and get a calculated column with the added sums in power BI. PLease do help me.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source