Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello! I am looking to create a formula that's if this and that, then this with time.
I want: If the time is between 6am-5:10pm, then "First Shift"
and if the time is between 5:25pm - 5:55am, then "Second Shift"
Thanks in advance!
Solved! Go to Solution.
Hi @nataliesmiy1357 - create below calculated column in your table, replace your Datetime column as per your model.
Hope it helps
Proud to be a Super User! | |
Hi @nataliesmiy1357 - create below calculated column in your table, replace your Datetime column as per your model.
Hope it helps
Proud to be a Super User! | |
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 44 | |
| 34 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 137 | |
| 118 | |
| 57 | |
| 40 | |
| 35 |