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 different Order Types per Period:
1. Entry
2. Revision
3. CleanUp
4. Quote Entry
5. Quote Revision
What I need is to count how many Entry and Revision per period. I have rows 1 to 12 for the period.
I was only able to count all but I'm struggling on how to apply EXCEPT type 3 to 5. Please help me build the complete DAX:
Solved! Go to Solution.
Try this:
SUMX(
VALUES('CRM Data (2)'[PD Completed]),
CALCULATE(
COUNTROWS('CRM Data (2)')
),
'CRM Data (2)'[Order Types] IN {"Entry", "Revision"}
)
Thank you! That's what I'm looking for. I thought I need to put an "Except" before this 'CRM Data (2)'[Order Types] IN {"Entry", "Revision"}, that's where my previous formula isn't working. So it can be as simple as that. Awesome!
the except is actually a NOT logic, the code below shall also work,
SUMX(
VALUES('CRM Data (2)'[PD Completed]),
CALCULATE(
COUNTROWS('CRM Data (2)')
),
NOT 'CRM Data (2)'[Order Types] IN {"CleanUp", "Quote Entry", "Quote Revision"}
)
In cases when the list you want to exclude is the longer half, you can try this way.
Try this:
SUMX(
VALUES('CRM Data (2)'[PD Completed]),
CALCULATE(
COUNTROWS('CRM Data (2)')
),
'CRM Data (2)'[Order Types] IN {"Entry", "Revision"}
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |