The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 👍
User | Count |
---|---|
81 | |
78 | |
37 | |
34 | |
31 |
User | Count |
---|---|
93 | |
81 | |
60 | |
49 | |
49 |