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.
Hi Experts,
I have a fact table looking like this:
Orders
date customerid qty
27-02-2019 | 2 | 1 |
27-02-2019 | 2 | 6 |
27-02-2019 | 3 | 4 |
27-02-2019 | 3 | 2 |
27-02-2019 | 3 | 4 |
10-03-2019 | 1 | 6 |
10-03-2019 | 1 | 2 |
10-03-2019 | 3 | 2 |
10-03-2019 | 1 | 1 |
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 1 | 1 | 1 |
Quantity 2 | 0 | 2 |
Quantity 3 | 0 | 0 |
Quantity 4 | 2 | 0 |
Quantity 5 or more! | 1 | 1 |
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:
Best wishes and hope - from:
Jon
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |