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
colem246
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
dani0010
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
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.