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 guys,
Need some assistance please.
This is long winded, but I have the following table, simplified below. Basically customer ID's, date of order and order category. I want to know how many cummulative 'Loyal" customers per month and what category the LOYALS are buying from per month. a 'Loyal" customer is someone who has ordered more than once.
I want to know how many loyal customers i accumulate per month as well as which category they are ordering from.
So in March we should only have 1 loyal customer (customer A with 3 orders).
In April we should have 2 loyal customers (customer A with a total of 4 orders and customer C with a total of 3 orders). This ties in with the first graph and DAX measure below
Then secondly of those that are loyal, i want to know how many orders they place per category per month, as per the second graph.
So in Mar, A ( who is loyal now) spent 1 order in 3 categorys.
In April, A (loyal for life) ordered in 1 category and C (who is now Loyal) ordered from 2 different categorys.
I have the following thus far to make the first graph, but can't seem to incorporate the category type to get the second graph as it then starts calculating the loyal customers PER category which isn't correct.
@SammyNed , You can use date and month year from date table, if you are using that in visual
Try measure like
countx(filter(summarize(Table, Table[Customer],"_1", calculate(distinctcount(Table[Date]))),[_1] >1),[Customer])
or
countx(filter(summarize(Table, Table[Customer], Table[Month Year],"_1", calculate(distinctcount(Table[Date]))),[_1] >1),[Customer])
Thank you for your reply, but i don't see how your solution can give me the second graph which needs to include the categorys purchased? Am i missing something?
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 |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |