Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Number of Rows

 

Order_IDAmountStatus
1750Won
2345Open
3556Won
47777Open
58900Lost
6123Lost
7432cancelled
8543open
912323open
107657open
116545Open
1254534Won

 

I would like to calculate the number of rows where the status is differnt than Won, Cancelled or Lost

Measure = COUNTROWS(FILTER(Orders ,Orders[Status]<>"Won" || Orders[Status]<>"Lost" || Orders[Status]<>"Cancelled"))
but it

 

1 ACCEPTED SOLUTION

Hi,

With my suggestion, the answer will be 6 (Open cases).  Please try it.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@Anonymous , use in and revert it with NOT

Measure = COUNTROWS(FILTER(Orders ,not(Orders[Status] in {"Won" , "Lost","Cancelled"})))

Ashish_Mathur
Super User
Super User

Hi,

Replace || with &&


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

What I need is any of the status not all of them so it's OR and not and

 

Hi,

With my suggestion, the answer will be 6 (Open cases).  Please try it.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

You are so great it's working

 

thanks

 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.