Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a table with a column called Author which contains both employee names and manager names. I created a measure that checks another column called Employee Name to see if the names are within the Author column to produce a value of either "Employee" or "Manager" (Is the Author an Employee or a Manager?). I was able to get the results I want from the measure but in order to use that information in my analysis I need to create a new column with these values. I need help converting my DAX measure to a new custom column.
Here is my measure:
Solved! Go to Solution.
Hi @Anonymous
Seems they are both in the same table. You can simply do
Author is Employee =
IF (
'GetDevelopmentGoalDetail'[Column1.Author] = 'GetDevelopmentGoalDetail'[Employee Name],
"Employee",
"Manager"
)
or even
Author is Employee =
IF (
'GetDevelopmentGoalDetail'[Employee Name] = BLANK ( ),
"Manager",
"Employee"
)
Hi @Anonymous
Seems they are both in the same table. You can simply do
Author is Employee =
IF (
'GetDevelopmentGoalDetail'[Column1.Author] = 'GetDevelopmentGoalDetail'[Employee Name],
"Employee",
"Manager"
)
or even
Author is Employee =
IF (
'GetDevelopmentGoalDetail'[Employee Name] = BLANK ( ),
"Manager",
"Employee"
)
Thank you, how could your first example be modified if it was [Employee Name] is in another table? If I simply change the table name in the current solution, an error of 'A table of multiple values was supplied where a single value was expected' is thrown. @tamerj1
@Anonymous
Is there a relationship between the two tables?
Yes, there is another table that has Employee Name.
@Anonymous
Yes, nut my question was: is the Employee table related to the GetDevelopmentGoalDetail table?
Yes, they both contain Employee Name.
@Anonymous
Let me be more specific. Do you have or have you created an active relationship between the two tables?
Yes. Already established.
@Anonymous
Thrn you can try
Author is Employee =
IF (
RELATED ( 'GetDevelopmentGoalDetail'[Employee Name] ) = BLANK (),
"Manager",
"Employee"
)
however, in this case I'm wondering why @FreemanZ didn't work 🤔
I will mark you solution above as correct, but was curious if the column was from another table. The data is called from an API and there are some repetative datasets. Was checking to confirm accuracy of my original results. Thank you.
hi @Anonymous
try like:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
8 |