Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi I’m trying to add multiple conditions to an IF function within a calculated column in order to register an employees status as either active or inactive.
The way I’m determining Status is via two conditions. The employee should show up Active if:
And
2. They haven’t got an inactive_date. Which is located in the InactiveEmployees field
This is the formula I’ve tried to use:
Status = IF('EmployeeMaster'[reason_code]=BLANK() && 'InactiveEmployees'[inactive_date]=BLANK(),"Active","Inactive")
But I receive the error “A single value for column ‘inactive_date’ in table ‘InactiveTableTest’ cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."
The Employee Master and InactiveTableTest are two different fields. Do I need to be using the REALTE function to deal with this?
Any help greatly appreciated.
Screenshots:
Solved! Go to Solution.
Yes, you're on the right track with related. Assuming your InactiveEmployees table doesn't have duplicates, you'll want to create a relationship between the EmployeeMaster and InactiveEmployees tables on the employee_no field.
From the Home tab, go to Manage Relationships. If it didn't autodetect it and create it for you already, click New, select EmployeeMaster in the top and InactiveEmployees in the bottom table drop-downs, select the employee_no field in both tables, and set the Cardinality to Many to One.
With the relationship in place, you can adjust your formula:
Status = IF('EmployeeMaster'[reason_code]=BLANK() && RELATED('InactiveEmployees'[inactive_date])=BLANK(),"Active","Inactive")
Also see a free training video here:
https://www.vrlearntime.com/product/power-bi-if-function-with-two-or-more-conditions/
Yes, you're on the right track with related. Assuming your InactiveEmployees table doesn't have duplicates, you'll want to create a relationship between the EmployeeMaster and InactiveEmployees tables on the employee_no field.
From the Home tab, go to Manage Relationships. If it didn't autodetect it and create it for you already, click New, select EmployeeMaster in the top and InactiveEmployees in the bottom table drop-downs, select the employee_no field in both tables, and set the Cardinality to Many to One.
With the relationship in place, you can adjust your formula:
Status = IF('EmployeeMaster'[reason_code]=BLANK() && RELATED('InactiveEmployees'[inactive_date])=BLANK(),"Active","Inactive")
Hi!
We have added a video on how to use the if function with multiple conditions on
http://power-bi-training1.teachable.com/p/power-bi-free-tutorial-videos/
![]()
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |