Join 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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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!!
User | Count |
---|---|
98 | |
76 | |
74 | |
49 | |
26 |