Commit 47a840aa authored by Jérome Perrin's avatar Jérome Perrin

execute: support pivot tables without any dimension selected

not sure why, but these changes look working for pivot table without
any dimensions on webpivottable
parent 56e6291e
......@@ -97,6 +97,11 @@ class XmlaExecuteTools():
self.executer.facts]) == 1:
# to ignore for tupls in itertools.chain(*tuples)
tuples = []
#tuples = [ [self.executer.facts] ]
#first_att = 2
tuples = [[[[self.executer.facts] + [mes] + [mes]]]
for mes in self.executer.selected_measures]
first_att = 3
else:
# ['Facts', 'Amount', 'Amount']
tuples = [[[[self.executer.facts] + [mes] + [mes]]]
......@@ -455,7 +460,7 @@ class XmlaExecuteTools():
hierarchy_info = ""
# measure must be written at the top
if self.executer.facts in mdx_execution_result['columns_desc'][
mdx_query_axis].keys() and len(mdx_execution_result[
mdx_query_axis].keys() or len(mdx_execution_result[
'columns_desc'][mdx_query_axis][self.executer.facts]) > 1:
hierarchy_info += """
<HierarchyInfo name="{0}">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment