Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello there,
I want to first group my customers by customer ID, the number of orders, and the date (my TABLE 1)
then group again by customer ID and Orders ( Table 2 )
the goal is to find out how many customer ordered more than once ( excluding the orders purchased on the same day)
is it possible to write this in one dax formula?
Thank you
Hi @dgdgdg122db
Try this:
TABLE1 =
VAR _A =
SUMMARIZE(
Orders,
Orders[Document Date],
Orders[CustomerID],
"Occurrence", DISTINCTCOUNT( Orders[Sales document] )
)
RETURN
SUMMARIZE( _A, [CustomerID], "Occurrence2", COUNTX( _A, [CustomerID] ) )
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 74 | |
| 50 | |
| 47 | |
| 44 |