Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.