Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi, i need a daxhero!
I need to count Orders with a specific color and without it.
OrderID | Color | Product | Values |
111 | Blue | Prod1 | 1 |
111 | Blue | Prod2 | 2 |
111 | Red | Prod3 | 5 |
111 | Green | Prod1 | 2 |
222 | Red | Prod2 | 4 |
222 | Green | Prod3 | 6 |
333 | Red | Prod1 | 1 |
333 | Red | Prod2 | 2 |
333 | Blue | Prod3 | 5 |
333 | Green | Prod1 | 2 |
For measure with color is easy:
Solved! Go to Solution.
Hi, @mic_rys
Please kindly check the below.
The sample pbix file's link is down below.
Without Blue =
VAR bluetable =
SUMMARIZE (
FILTER (
SUMMARIZE ( 'Table', 'Table'[OrderID], 'Table'[Color] ),
'Table'[Color] = "Blue"
),
'Table'[OrderID]
)
VAR alltable =
VALUES ( 'Table'[OrderID] )
RETURN
COUNTROWS ( EXCEPT ( alltable, bluetable ) )
https://www.dropbox.com/s/jw8dfslfo4zte4j/mic%20rys.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
Hi, @mic_rys
Please kindly check the below.
The sample pbix file's link is down below.
Without Blue =
VAR bluetable =
SUMMARIZE (
FILTER (
SUMMARIZE ( 'Table', 'Table'[OrderID], 'Table'[Color] ),
'Table'[Color] = "Blue"
),
'Table'[OrderID]
)
VAR alltable =
VALUES ( 'Table'[OrderID] )
RETURN
COUNTROWS ( EXCEPT ( alltable, bluetable ) )
https://www.dropbox.com/s/jw8dfslfo4zte4j/mic%20rys.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
thank you a lot, works perfectly!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
7 | |
5 | |
4 | |
3 |
User | Count |
---|---|
12 | |
11 | |
9 | |
8 | |
8 |