Forum Discussion
eburke
Helper II
8 years agobanding 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: This has been used in a calculated column to ...
- 8 years ago
BILASolution
Solution Specialist
8 years agoHi 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
- eburke8 years ago
Helper II
Hi, thanks for this, it comes up with an error The syntax for ';' is incorrect.
- BILASolution8 years ago
Solution Specialist
- eburke8 years ago
Helper II
Yes that worked, thank you so much :)