Forum Discussion
Anonymous
4 years agoNot applicable
If statement not working with columns, only taking measures
Hi everyone! So I've been trying to use if statements to calculate a conditional column. I've been trying to create a column called shift, based on the hour an employee worked. So if they worked ...
tackytechtom
Most Valuable Professional
4 years agoHi Anonymous,
Do you mean something like this? 🙂
Right click on a column in your table and choose New Column:
Here the DAX:
ShiftString =
SWITCH (
TRUE,
Table[Shift] = "1-6", "Overnight Shift",
Table[Shift] = "7-15", "Monring Shift",
Table[Shift] = "16-0", "Evening Shift",
BLANK()
)
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/