Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have 1 table with orders from users and I have 6 different products/productids:
id | userid | productid |
I would like to know how many users ordered 1 product, 2 products etc.
NrOfProducts | NrOfUsers |
1 | 50 |
2 | 69 |
How can I do this?
Solved! Go to Solution.
@livios , You have use dynamic segmentation
First create 1 measure
NrOfProducts = Count(Table[productid])
then create a new Table
bucket = Generateseries(1,100,1)
Use a new Measure with bucket value in visual
Countx(filter(Values(Table[user]), [NrOfProducts] = max(bucket[Value])), [User])
Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...
Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k
@livios , You have use dynamic segmentation
First create 1 measure
NrOfProducts = Count(Table[productid])
then create a new Table
bucket = Generateseries(1,100,1)
Use a new Measure with bucket value in visual
Countx(filter(Values(Table[user]), [NrOfProducts] = max(bucket[Value])), [User])
Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...
Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
195 | |
80 | |
70 | |
51 | |
42 |