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.
Now I want to create another measure (Total Orders Completed) to count order ids with status as complete or close
Thanks
Solved! Go to Solution.
Hi,
I am not sure how your datamodel looks like, but please try something like below.
order status complete or close =
CALCULATE (
DISTINCTCOUNT ( order[ORDERID] ),
FILTER (
ALL ( order[Order Status] ),
order[Order Status] IN { "Close", "Complete" }
),
ALL ( order[type] )
)
Hi,
I am not sure how your datamodel looks like, but please try something like below.
order status complete or close =
CALCULATE (
DISTINCTCOUNT ( order[ORDERID] ),
FILTER (
ALL ( order[Order Status] ),
order[Order Status] IN { "Close", "Complete" }
),
ALL ( order[type] )
)
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
9 | |
6 |