cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors