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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 )
)
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |