Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi All
I am attempting to get this custom column in Power Query however not quite correct
= Table.AddColumn(#"Changed Type1", "Rate", each if [Shift Start] < #time(18, 1, 0) then "Evening Rate"
if [Shift end] > #time(18, 0, 0) then "Day Rate" else if [Shift End] < #time(18, 1, 0) then "Evening Rate"
If [Shift Start] < #time (05,59,0) then "Evening Rate" else ifIf [Shift Start] < #time (06,00,0) then "Day Rate"
and if [Shift Start] > #time (05,59,0) then "Evening Rate" else null)
else if [Shift Finish] > #time(18, 1, 0) then "Evening Rate" else null)
| Shift Start | Sleepover Start | Sleepover Finish | Allocated Shift Break (mins) | Shift Finish | Worked Hours in Day | Shift Splits | Total shift hours | Week | Day |
| 9:15 AM | 0 | 1:15 PM | 4.00 | 4 | 1 | Thursday | |||
| 9:15 AM | 0 | 1:15 PM | 4.00 | 4 | 2 | Thursday | |||
| 9:00 AM | 0 | 1:00 PM | 4.00 | 4 | 1 | Tuesday | |||
| 9:15 AM | 0 | 1:15 PM | 4.00 | 4 | 1 | Wednesday |
Your sample data doesn't match your description. Please check, and please also indicate the expected outcome based on the sample data.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |