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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
atari35
Frequent Visitor

counta grouping

Hi,

 

I have a table with a column and values. I'm trying to group the values into group ranges. For exmple

 

Amounts
10000
5000
4000
2000
5
11000
12000
20000
15000
30000
100000
25000
80000
18000
21000
14000
23500

 

 

and im looking for an outcome like this. 

 

AmountsCount
Between 1 and 100005
Between 10001 and 200006
Between 20001 and 300004
Above 300002
1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @atari35 

Probably the easiest is to create add a calculated column with the range:

 

Bucket =
SWITCH (
    TRUE (),
    Table1[Amount] <= 10000, "Between 1 and 10000",
    Table1[Amount] <= 20000, "Between 10001 and 20000",
    Table1[Amount] <= 30000, "Between 20001 and 30000",
    "Above 30000"
)

then use it in a matrix visual with a simple COUNT measure

 

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @atari35 

Probably the easiest is to create add a calculated column with the range:

 

Bucket =
SWITCH (
    TRUE (),
    Table1[Amount] <= 10000, "Between 1 and 10000",
    Table1[Amount] <= 20000, "Between 10001 and 20000",
    Table1[Amount] <= 30000, "Between 20001 and 30000",
    "Above 30000"
)

then use it in a matrix visual with a simple COUNT measure

 

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.