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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Dragonfury
Frequent Visitor

Creating Buckets Based on Measure Results

I'm new to powerBI so some assistance would be very appreciated. I couldn't find a solution in the search, so hopefully, I am not duplicating effort.

 

In PowerBI I'm trying to visualize customer overdue balances and group them by thresholds.

 

See sample (Fact) table below:

SalesPerson | Customer | Balance | Outstanding Balance 
Tim         | A134     |  2845   | 134
Tim         | A134     |  3847   | 488
John        | B395     |  8475   | 5
John        | C113     |  100    | 0

I have created a measure to work out the Outstanding balance % per customer (Outstanding balance/Balance)

I want to be able to "Bucket" the results into 3 categories 0-5%, 5-10%, >10%. So I want to find out:

a) How many Customers fall into each bucket
b) How many salespeople fall into each bucket

c) The total amount of outstanding balance in each bucket.

Resulting table looks like this:

 Bucket  | No.Customers | No. SalesPeople | Total outstanding Balance 
 0-5%    |              |                 |
 5-10%   |              |                 |
 >10%    |              |                 |

Of course, it needs to be dynamic on filters/slicers on the report.

 

I tried creating a summary table which sort of works however because of the relationship back to the fact table, I couldn't slice on salesperson or customer. 

 

The end result would be a pie chart where the "buckets" would become the legend and the sum of the outstanding balance will be the values. And the same for a count of customers/salesperson.

1 ACCEPTED SOLUTION
Bifinity_75
Solution Sage
Solution Sage

Hi @Dragonfury , 

- You need create a measure:

Outstanding balance % per customer = DIVIDE(SUM(Table_[ Outstanding Balance ]),SUM(Table_[ Balance ]))

- After, create a calculate column:

Bucket = SWITCH(TRUE(),
[Outstanding balance % per customer]>0.1,">10%",
[Outstanding balance % per customer]<=0.05,"0-5%",
"5%-10%")

- Pie Chart result: Use calculate column Bucket for your legend

Bifinity_75_0-1667493662658.png

 

I hope it works for you, Best regards

 

View solution in original post

1 REPLY 1
Bifinity_75
Solution Sage
Solution Sage

Hi @Dragonfury , 

- You need create a measure:

Outstanding balance % per customer = DIVIDE(SUM(Table_[ Outstanding Balance ]),SUM(Table_[ Balance ]))

- After, create a calculate column:

Bucket = SWITCH(TRUE(),
[Outstanding balance % per customer]>0.1,">10%",
[Outstanding balance % per customer]<=0.05,"0-5%",
"5%-10%")

- Pie Chart result: Use calculate column Bucket for your legend

Bifinity_75_0-1667493662658.png

 

I hope it works for you, Best regards

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.