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.
Hi
I have customer-email adresses and order numbers as different columns. I'd like to calculate the number of orders per customer-email and then create a separate column "segment" based on the number of orders.
The table should be able to show segments with then the connected net sales (same table).
How to achieve this?
ok
I have the following data:
email cst. order_no
...... abc
...... efg
........ hijk
- I need to count the distinct order-No per e-mail cst
- I need an addition column to create segments based on number of orders, such as:
- I need to be able to show the values by segment
Does that help?
Hi @clarissa ,
Create a measure
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Unfortunately I can't share the table, but the email is also not unique... so an e-mail address can come up a few times with different order numbers... can you work with this? Thank you so much
Hi @clarissa ,
You can try something like this
https://radacad.com/customers-grouped-by-count-of-their-orders-static-segmentation-in-power-bi
Do share sample data incase this does not work.
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Thank you.
Do you have a solution with a formula for measures? like summarize and group by?