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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Segment by sum of quantity and number of customers per segment

Hi Experts,

 

I have a fact table looking like this:

 

Orders

 

date                                                            customerid                       qty

27-02-201921
27-02-201926
27-02-201934
27-02-201932
27-02-201934
10-03-201916
10-03-201912
10-03-201932
10-03-201911

 

I would like to segment into quantity segments, showing number of customers in each segment. The segments are by quantity and result should like below:

 

Quantity segment                                                       February                  March

Quantity 111
Quantity 202
Quantity 300
Quantity 420
Quantity 5 or more!11

 

The date columns february and march are showing number of customers per segment.

 

I've been looking at https://www.daxpatterns.com/static-segmentation/ and https://www.daxpatterns.com/dynamic-segmentation/ for inspiration - but I can't seem to get around a way of doing it. Any hints, help or advice to what DAX pattern is correct would highly appreciated.

 

I should hope to end up with a visual like the one below:

 

 

bla.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best wishes and hope - from:

 

Jon

11 REPLIES 11

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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