The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I am looking for a solution either in Power Query or in DAX to be able to identify customer orders which are placed by error more than once.
A customer order (Order ID) is considered 'duplicate' if there is another Order ID with the:
- same Order Date +
- same Customer Reference +
- same List of Materials +
- same Order quantities for each material.
It is important that one order usually consist of multiple Material codes and we want to find 'duplicate' orders only if the whole list of material and order quantities are the same.
Any help appreciated.
Hi @BLB
Please try
Duplicate Orders =
CALCULATETABLE (
VALUES ( Orders[Order ID] ),
FILTER (
SUMMARIZE (
Orders,
Orders[Order Date],
Orders[Customer Reference],
Orders[List of Materials],
Orders[Order Qty]
),
COUNTROWS ( CALCULATETABLE ( Orders ) ) > 1
)
)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
21 | |
18 | |
16 | |
15 | |
14 |
User | Count |
---|---|
39 | |
32 | |
22 | |
19 | |
18 |