How to use Cube.create_date_hierarchy()
?
#683
-
Hello,
The code: h['Time v2'] = cube.create_date_hierarchy('Time v2', column=time_table['QuarterKey'], levels={'Years':'yyyy', 'Quarters':'QQQ'}) The stacktrace:
I have also tested the following combinations: y/Q ; y/QQQ ; yyyy/Q. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Is the type of the column Date hierarchy can only created against column with Temporal type ( The error message was unclear I'm working to improve it in the next release, |
Beta Was this translation helpful? Give feedback.
Is the type of the column
QuarterKey
String
? If not what is its type ?Date hierarchy can only created against column with Temporal type (
LOCAL_DATE
,LOCAL_DATE_TIME
, ...), see the column parameter documentation .The error message was unclear I'm working to improve it in the next release,