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

Calculate with multiple conditions

Hi ,

 

I am calculte a factor for safety management. I need to add 3 conditions:

Lost Time Injury

Medical Aid

First Aid - Treatment 

 

When I add only one condition, it works good.

A = CALCULATE(COUNT('Incident Report'[Form ID]),
'Date',
'Incident Report'[Event Type]="Lost Time Injury")
 
Once I add three conditions, it shows blank, but it shouldn't.
A = CALCULATE(COUNT('Incident Report'[Form ID]),
'Date',
'Incident Report'[Event Type]="Lost Time Injury",
'Incident Report'[Event Type]="Medical Aid",
'Incident Report', 'Incident Report'[Event Type]="First Aid - Treatment")
 
I can't find the reason. Please help!!!
1 ACCEPTED SOLUTION
vapid128
Solution Specialist
Solution Specialist

 

A = 
CALCULATE(
    COUNT('Incident Report'[Form ID]),
    Filter('Incident Report',
        'Incident Report'[Event Type]="Lost Time Injury" ||
        'Incident Report'[Event Type]="Medical Aid" ||
        'Incident Report', 'Incident Report'[Event Type]="First Aid - Treatment"
)

 

I don get what is 'Date', do you want sum workers and days?

 

View solution in original post

1 REPLY 1
vapid128
Solution Specialist
Solution Specialist

 

A = 
CALCULATE(
    COUNT('Incident Report'[Form ID]),
    Filter('Incident Report',
        'Incident Report'[Event Type]="Lost Time Injury" ||
        'Incident Report'[Event Type]="Medical Aid" ||
        'Incident Report', 'Incident Report'[Event Type]="First Aid - Treatment"
)

 

I don get what is 'Date', do you want sum workers and days?

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors