Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
erhan_79
Post Prodigy
Post Prodigy

formula help status

Hi there ;

 

i have a column which shows "day" value as below left , i would like to create a new column that  writing  status according to below rule

 

İf day column value is between -3 and +3 status = on time 

if day column is bigger than  +3 status is = late

if day column is smaller than -3 status is early

 

thanks in advance 

 

dayStatus
0On time
3On time
5Late
2On time
1On time
-6Early
-4Early
-3On time
-1On time
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @erhan_79 

Status Column = 
SWITCH(TRUE(),
[day] < -3, "early",
[day] > 3, "late",
"on time"
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @erhan_79 

Status Column = 
SWITCH(TRUE(),
[day] < -3, "early",
[day] > 3, "late",
"on time"
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Hi @az38 ;

 

you are perfect ! it is working thank you!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.