You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError("{icons.red_dot} The '{measure_name}' is not a valid measure in the '{self._dataset}' semantic model within the '{self._workspace}' workspace.")
3675
3673
3674
+
table_name=matching_measures[0]
3676
3675
# Validate date table
3677
3676
ifnotself.is_date_table(date_table):
3678
3677
raiseValueError(
3679
3678
f"{icons.red_dot} The '{date_table}' table is not a valid date table in the '{self._dataset}' semantic model within the '{self._workspace}' workspace."
3680
3679
)
3681
3680
3682
3681
# Extract date key from date table
3683
-
try:
3684
-
date_key=next(
3685
-
c.Name
3686
-
forcinself.all_columns()
3687
-
ifc.Parent.Name==date_tableandc.IsKey
3688
-
)
3689
-
except:
3682
+
matching_columns= [
3683
+
c.Name
3684
+
forcinself.all_columns()
3685
+
ifc.Parent.Name==date_tableandc.IsKey
3686
+
]
3687
+
3688
+
ifnotmatching_columns:
3690
3689
raiseValueError(
3691
-
f"{icons.red_dot} The '{date_table}' table does not have a date key column in the '{self._dataset}' semantic model within the '{self._workspace}' workspace."
3692
-
)
3690
+
f"{icons.red_dot} The '{date_table}' table does not have a date key column in the '{self._dataset}' semantic model within the '{self._workspace}' workspace.")
0 commit comments