Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I need some help please. I have 2 tables (All Customers, Product Items). These 2 tables are linked by the unique Customer ID with All Customers as the 1 side and Product Items as the many sides.
I am trying to get a calculated column in All Customers to achieve the unique number of invoiced product orders each customer has placed. Please note that Product Items list the items customers have ordered but do not relate to orders - meaning 3 product items can equal to 1 order.
What I have so far is:
Product Order per Customer =
COUNTROWS(
RELATEDTABLE('Product Items Internal ID')
)
This gives me the number of product items each customer has placed but I need the number to be the unique number of product orders and also a filter which it will filter the Status of Product Items to be "Invoiced".
I have tried a few times but the filter would not work. How can I add in a filter that will work for what I am after.
Thank you.
Solved! Go to Solution.
I think something along these lines should work
Product Order per Customer =
CALCULATE (
DISTINCTCOUNT ( 'Product Items Internal ID'[Products] ),
'Product Items Internal ID'[status] = "invoiced"
)
I think something along these lines should work
Product Order per Customer =
CALCULATE (
DISTINCTCOUNT ( 'Product Items Internal ID'[Products] ),
'Product Items Internal ID'[status] = "invoiced"
)
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 64 | |
| 58 | |
| 31 | |
| 25 | |
| 25 |