Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Power BI DAX to split the value in to multiple ranges

I have the data as below.
 
Product_CodeChannel Account_IdMax_tierBalance
2000-0100Direct1021236255000174589.26
2000-0100Direct10212362510000174589.26
2000-0100Direct10212362520000174589.26
2000-0100Direct10212362550000174589.26
2000-0100Direct10212362599999999999.99174589.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_CodeChannel_DescAccount_IdMax_tierBalanceSplit_range
2000-0100Direct1021236255000174589.265000
2000-0100Direct10212362510000010000
2000-0100Direct10212362520000020000
2000-0100Direct10212362550000050000
2000-0100Direct10212362599999999999.99089589.26

Any thought would be much appreciated

4 REPLIES 4
parry2k
Super User
Super User

@Anonymous what is the logic to get balance to last row?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hi Parry,

The balance is 174589.26.

So we split into the MAX_tier range,

then the 1st range is 5000. So the remaining balance is 174589.26-5000 = 169589.26.

2nd split max is 10000. So the remaining balance is  169589.26 - 10000 = 159589.26

3rd split max is 20000. So the remaining balance is  159589.26 - 20000 = 139589.26

4th split max is 50000. So the remaining balance is  139589.26 - 50000 = 89589.26

5th split max is 9999999999.99. So the remaining balance is  89589.26

 

Another Example

if the balance is only 3500. Then this will fit into the 1st range itself

if the balance is 8500. Then this will fit into the 1st and 2nd range 

 

 

@Anonymous does this looks correct?image.png



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hi Parry,

That is exactly what i am looking for.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.