Forum Discussion
Parno
3 years agoFrequent Visitor
Calculate Column - Try to create an IF and AND statement
Hi although I'm not new new to PowerBI I am struggling trying to create a calculated column. I have named the column Leaver in the same year. I am running a data set on new starters - but also inte...
- 3 years ago
Parno Please try this:-
Leaver in the same year = IF ( INT('HESA Extract'[JOINER IN PERIOD]) = 1 && INT('HESA Extract'[LEAVER IN PERIOD]) = 1 && 'HESA Extract'[TYPE] = "Continuing", "Yes", "No" )
guibenassi
Advocate II
3 years agoParno take a look if there are a sintax problem.
you can try 1 of 2 of this:
Leaver in the same year = IF ((HESA Extract'[JOINER IN PERIOD] =1 && HESA Extract'[LEAVER IN PERIOD] = 1 && HESA Extract'[TYPE] ="Continuing","Yes", "No"))
Leaver in the same year = IF ((HESA Extract'[JOINER IN PERIOD] ="1" && HESA Extract'[LEAVER IN PERIOD] = 1 && HESA Extract'[TYPE] ="Continuing","Yes", "No"))
- Parno3 years agoFrequent Visitor
Thank you, but of these show the result as #ERROR