cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Need way to measure/filter with multiple values in multiple columns

Hello,

 

I am trying to create a measure to count order numbers based on multiple criteria.

 

I want the job code=Job Time and Comp Status to be equal to CGI, CGI PHONE, etc...

 

This is the code I am using now, but it doesnt produce a result:

 

# of Orders Finished = CALCULATE(COUNT('Time Sheet'[Order ID]), FILTER(ALL('workload'), 'workload'[Comp Status]="CGI"||'workload'[Comp Status]="COMPLETED"||'workload'[Comp Status]="CGI_PHONE"||'workload'[Comp Status]="DEFERRED"||'workload'[Comp Status]="CANCELLED"), FILTER(ALL('Time Sheet'), 'Time Sheet'[Job Code]="Job Time"))

1 REPLY 1
Frequent Visitor

@colem246 I would check a coulple things first.

 

1) There is an active relationship between the Time Sheet and workload tables.

 

2) Being totally ignorant of your data, I have no idea, but the value "Job Time" in the second filter looks suspiciously like a column name rather than a valid value for a Job Code column. Is that really what you intended there?

 

If neither of these is the problem, try just throwing up a table with your time sheet data in it and using the Filter side bar to limit your data as you're trying to do in your formula. If you get an empty result there too, you know the problem is in the data and not your formula.

 

 

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors