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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
PowerBITestingG
Advocate II
Advocate II

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.