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

Top Solution Authors