Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
8 | |
7 |