Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello All,
Im trying to map the shift based on the timings that are being arrived from backend of SQL data and i have used this formula (
| First | 06:00:00 | 13:59:59 |
| General | 08:30:00 | 05:00:00 |
| Second | 02:00:00 | 22:00:00 |
| Third | 22:00:00 | 05:59:00 |
@Sairam_11 , This formula seems fine to me for a new column in Table looking into table 2 you have shared above
shift = MAXX(filter('Table (2)',Table[datetime]>='Table (2)'[starttime] && Table[datetime] <='Table (2)'[endtime] ),'Table (2)'[shift])
Can you please share what is wrong? Share data for both tables to test
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 18 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 53 | |
| 47 | |
| 40 | |
| 38 |