Forum Discussion
HenryJS
6 years agoPost Prodigy
New Column IF DAX
Hi all, I want to create a new column called 'Department' using DAX. If 'Export Jobs.JobType' = Permanent then 'Permanent' If Team = Permanent then 'Permanent' If Team = London t...
Anonymous
6 years agoNot applicable
From the data you posted, your Team column is enought to achive the expected results as it has all the three entries and ExportJobs.Jobtype is anyways permanant for permamant values in Team.
If so, you can use this :
Department =
SWITCH('Table'[Team],"London", "Tech and Prof","North","Tech and Prof","Permanant","Permanant")
Not sure, if there is a case where you have Permanant under Team and someother value in Jobtype. if there is a case like this you can use this
Department =
SWITCH('Table'[Team],"London", "Tech and Prof","North","Tech and Prof",
If('Table'[Team] = "Permanant" && 'Table'[ExportJobs.JobType] = "Permanant","Permanant"))
If my response helped you please like and accept this as a solution.
HenryJS
6 years agoPost Prodigy
Hi Anonymous
there are some cases where Export Jobs.Job Type = Permanent but the Team may not be Permanent
How do I make the Department = Permanent if Export Jobs.Job Type = Permanent and the rest relate to Team?
- Anonymous6 years agoNot applicable
From your input, i understand that if export.Jobtypes is Permanant then it should be permanant else it should depend on team values.
you can use below
Department =IF('Table'[ExportJobs.JobType] = "Permanant" && 'Table'[Team] <> "Permanant",SWITCH('Table'[Team],"London", "Tech and Prof","North","Tech and Prof"), "Permanant")