Skip to content

Commit

Permalink
add mdx drilldown with level
Browse files Browse the repository at this point in the history
  • Loading branch information
vishn90 authored and MariusWirtz committed Aug 7, 2023
1 parent fb8dbd3 commit 6a6db63
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions mdxpy/mdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,14 +700,10 @@ def to_mdx(self) -> str:

class DrillDownLevelHierarchySet(MdxHierarchySet):

def __init__(self, member: Member, level):
def __init__(self, member: Member, level: int =1):
super(DrillDownLevelHierarchySet, self).__init__(member.dimension, member.hierarchy)
self.member = member

if level:
self.level = level
else:
self.level = 1
self.level = level

def to_mdx(self) -> str:
startstring = ''
Expand Down

0 comments on commit 6a6db63

Please sign in to comment.