This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi
Need to be a able to count the number of customer orders and be able to filter by order date wich updates the count of customer orders.
| Customer ID | Order ID | Order Date | No Customer Orders |
| 1 | 1 | 1/01/2017 | 2 |
| 1 | 2 | 3/01/2017 | 2 |
| 2 | 3 | 2/01/2017 | 1 |
| 3 | 4 | 5/01/2017 | 4 |
| 3 | 5 | 8/01/2017 | 4 |
| 3 | 6 | 9/01/2017 | 4 |
| 3 | 7 | 10/01/2017 | 4 |
With Date filter 08/01/2017 to 10/01/2017
| Customer ID | Order ID | Order Date | No Customer Orders |
| 3 | 5 | 8/01/2017 | 3 |
| 3 | 6 | 9/01/2017 | 3 |
| 3 | 7 | 10/01/2017 | 3 |
Solved! Go to Solution.
@Sir_night wrote:
Hi
Need to be a able to count the number of customer orders and be able to filter by order date wich updates the count of customer orders.
Customer ID Order ID Order Date No Customer Orders 1 1 1/01/2017 2 1 2 3/01/2017 2 2 3 2/01/2017 1 3 4 5/01/2017 4 3 5 8/01/2017 4 3 6 9/01/2017 4 3 7 10/01/2017 4
With Date filter 08/01/2017 to 10/01/2017
Customer ID Order ID Order Date No Customer Orders 3 5 8/01/2017 3 3 6 9/01/2017 3 3 7 10/01/2017 3
You can try a measure as below.
No Customer Orders =
COUNTAX (
FILTER (
ALLSELECTED ( Table1 ),
Table1[Customer ID] = MAX ( Table1[Customer ID] )
),
Table1[Order ID]
)
@Sir_night wrote:
Hi
Need to be a able to count the number of customer orders and be able to filter by order date wich updates the count of customer orders.
Customer ID Order ID Order Date No Customer Orders 1 1 1/01/2017 2 1 2 3/01/2017 2 2 3 2/01/2017 1 3 4 5/01/2017 4 3 5 8/01/2017 4 3 6 9/01/2017 4 3 7 10/01/2017 4
With Date filter 08/01/2017 to 10/01/2017
Customer ID Order ID Order Date No Customer Orders 3 5 8/01/2017 3 3 6 9/01/2017 3 3 7 10/01/2017 3
You can try a measure as below.
No Customer Orders =
COUNTAX (
FILTER (
ALLSELECTED ( Table1 ),
Table1[Customer ID] = MAX ( Table1[Customer ID] )
),
Table1[Order ID]
)
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 25 | |
| 24 | |
| 24 | |
| 14 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 24 | |
| 19 |