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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I want to create a measure that tells me which number of order the customer currently has. for instance for customer 599-9175 he has two orders the new measure would tell me 1 for his first order and 2 for the second order. Please see the picture for visual understanding, I will be using powerbi to create such measure. thank you
Solved! Go to Solution.
Hi,
you're likely going to want to create a running total grouped on the ID field:
try something like this:
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Hi @ligalbert
You can refer to the following measure
Measure = CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[Customer]),'Table'[Date]<=SELECTEDVALUE('Table'[Date]))
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
you're likely going to want to create a running total grouped on the ID field:
try something like this:
If I answered your question, please mark my post as solution, 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 |
|---|---|
| 57 | |
| 44 | |
| 40 | |
| 21 | |
| 18 |