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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
eburke
Helper II
Helper II

banding not working

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:

 

banding.PNG

 

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,

1 ACCEPTED SOLUTION

@eburke

 

Try to replace it by a ","

View solution in original post

5 REPLIES 5
BILASolution
Solution Specialist
Solution Specialist

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.

@eburke

 

Try to replace it by a ","

Yes that worked, thank you so much 🙂

Have same issue.How did you resolve ?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors