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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I've started using Banding for the first time, a fairly simple one spliting 24 hours into 4 bands, Table is set up as per below:
This has been used in a calculated column to assign a band to a row based on a time column =
Time Bands = CALCULATE(VALUES(Band[Band]),FILTER(Band, 'Actual Services'[Activity Start Time]>=Band[Low]&&'Actual Services'[Activity Start Time]<Band[High]))
No matter what I do there is always one set of data that comes up with a blank band, currently its anything that should fall into the band category 6pm - Midnight.
Any idea how to fix this? Thanks,
Solved! Go to Solution.
Hi @eburke
Try this Calculated Column...
Time Bands = var actualtime = FIRSTNONBLANK('Actual Services'[Activity Start Time];1)
var bandd = FIRSTNONBLANK(SELECTCOLUMNS(CALCULATETABLE(Band;Band[Low]<=actualtime;Band[High]>=actualtime);"Band";Band[Band]);1)
var midnight = LOOKUPVALUE(Band[Band];Band[High];TIME(24;0;0))
return
IF(ISBLANK(bandd);midnight;bandd)Regards
BILAsolution
Hi, thanks for this, it comes up with an error The syntax for ';' is incorrect.
Yes that worked, thank you so much 🙂
Have same issue.How did you resolve ?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!