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 have a DAX expression:
Reorders of two or more = CALCULATE(SUM(FactTable[Orders]),'FactTable[Count of duplicates orders]>=2)
that sums orders of two or more per client (rows).
For each duplicates, there is an original order.
How do I modify the DAX expression so that a subraction of 1 will exclude the original order from duplicates orders only.
When I say "duplicates", it can include 3 or more orders.
Thanks in advance.
CALCULATE(SUM(FactTable[Orders]),FILTER(ALL('FactTable[Count of duplicates orders]),'FactTable[Count of duplicates orders]-IF('FactTable[Count of duplicates orders]<2,0,1)>=2))
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |