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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.