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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PowerBITestingG
Resolver I
Resolver I

Group orders based on virtual table

I have this table:

NameCodeQuantity
Google105
Google1010
Google4410
Google1050

 

And I need to create 2 measures, bucket and Count of bucket

 

CodeBucketCount
101-102
1011-201
1021+

1

 

I have this , but how do I combine it with a virtual table

 

var countqty = count(qty)
var buckets = SWITCH(TRUE(),
countqty>0&&countqty<11,"1-10",
countqty>11&&countqty21,"11-20")

 

 

1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi @PowerBITestingG 

please provide the expected output, thanks.

 

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors