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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

How to create a dynamic table with revenue spend categories

Hi,

I have the below data and need to create a table based on the spend category per customer., but dynamic based on the selected weeks.

For all the customers with revenue below $2000, I will sum their revenue and put them in the category 0-2000, and the rest of the revenue will sum to the category >2000. This however needs to be dynamic, based on the weeks that I select. Also I need to be able to select multiple weeks and not single select. 

Any ideas how to create this measure?

Thanks!

 

Sample data

QuarterWeekCustomerRevenue
11A $    123.00
11B $ 1,664.00
11C $    231.00
11D $ 5,464.00
11E $      32.00
11F $ 3,463.00
12A $    145.00
12B $      56.00
12C $ 1,430.00
12D $ 1,340.00
12E $ 6,506.00
12F $      35.00

 

Result 1

Week 1Revenue
$0-$2000 $   2,050.00
>$2000 $   8,927.00
  
Result 2 
Quarter 1Revenue
$0-$2000 $   3,649.00
>$2000 $ 16,840.00

 

Chris_Nas_0-1637237719227.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , seem like you are looking for bucketing/binning

 

check if these link by me can help

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1387187#M626


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , seem like you are looking for bucketing/binning

 

check if these link by me can help

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1387187#M626


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you @amitchandak ! 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors