Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi
So I a stuck on this. I am trying to basically create a bar chart showing customers who have made 2 or more orders, 10 or more, 20 or more, 50 or more and 100 or more and have it update weekly. I have all the necessary data tables already set up (including date table).
My first approach was creating a table with unique customer ID and the total orders, which was successful - Image below.
I then used this calculation to get # of customers who made at least 2 orders -
Also, sorry not to spam but do I even need a table? Could I create a DAX measure to basically say find me the number of times a unique ID order 2 or more and then put in bar chart?
Also here is an image of my main data table down below. I am basically trying to create this bar chart with each stack representing an order threshold.
Hi,
I am not sure how your data model looks like, but if you want to create dynamic grouping type of visaul, one of ways to solve it is having a grouping table like below.
I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Orders total: =
SUM( Data[Orders] )
Customers count: =
CALCULATE (
COUNTROWS ( Customer ),
FILTER (
Customer,
COUNTROWS (
FILTER (
GroupTable,
GroupTable[Min] <= [Orders total:]
&& GroupTable[Max] >= [Orders total:]
)
) > 0
)
)
How did you create the cutoff for the group numbers?
Hi @BabyBinki821
Dynamic segmentation can work only for small-medium size data. The question is: if you summarize your orders table by customer and date, how many rows you get? Regarding your measure, it should give the correct number of customers that made more than 2 orders. There is no doubt about that. But how are you displaying this number? Is it just a card visual?
I have over 40,000 rows
And in terms of the measure, if I filter the column I get 646 customers that made 2 o more orders but the measure itself in the bar chart only returns ~240
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
11 | |
11 | |
8 | |
8 | |
8 |