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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Is there a way to Count Distinct Order with Sales above 300.
I tried this expression but getting wrong result.
| OrderID | OrderDate | ShippedDate | Delivery Date | Sales |
| 1 | 13/1/2020 | 15/02/2020 | 13/03/2020 | 100 |
| 2 | 15/02/2020 | 13/03/2020 | 15/04/2020 | 50 |
| 2 | 15/02/2020 | 13/04/2020 | 15/05/2020 | 300 |
| 3 | 15/02/2020 | 13/03/2020 | 15/04/2020 | 250 |
| 3 | 15/02/2020 | 13/04/2020 | 15/05/2020 | 60 |
| 4 | 15/02/2020 | 13/03/2020 | 15/04/2020 | 30 |
| 4 | 15/02/2020 | 13/04/2020 | 15/05/2020 | 80 |
Solved! Go to Solution.
It's all about context. Give this a try:
Order Count =
CALCULATE(
DISTINCTCOUNT( Sheet1[OrderID] ),
FILTER (
VALUES(Sheet1[OrderID]),
CALCULATE( SUM ( Sheet1[Sales] ) > 300 )
)
)
It's all about context. Give this a try:
Order Count =
CALCULATE(
DISTINCTCOUNT( Sheet1[OrderID] ),
FILTER (
VALUES(Sheet1[OrderID]),
CALCULATE( SUM ( Sheet1[Sales] ) > 300 )
)
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |