| Product_Code | Channel | Account_Id | Max_tier | Balance |
| 2000-0100 | Direct | 102123625 | 5000 | 174589.26 |
| 2000-0100 | Direct | 102123625 | 10000 | 174589.26 |
| 2000-0100 | Direct | 102123625 | 20000 | 174589.26 |
| 2000-0100 | Direct | 102123625 | 50000 | 174589.26 |
| 2000-0100 | Direct | 102123625 | 99999999999.99 | 174589.26 |
I am trying to build a report in Power BI, where the Balance should be split into a range that should fit into MAX_TIER.So the output should be as below
| Product_Code | Channel_Desc | Account_Id | Max_tier | Balance | Split_range |
| 2000-0100 | Direct | 102123625 | 5000 | 174589.26 | 5000 |
| 2000-0100 | Direct | 102123625 | 10000 | 0 | 10000 |
| 2000-0100 | Direct | 102123625 | 20000 | 0 | 20000 |
| 2000-0100 | Direct | 102123625 | 50000 | 0 | 50000 |
| 2000-0100 | Direct | 102123625 | 99999999999.99 | 0 | 89589.26 |
Any thought would be much appreciated