Skip to content

Releases: cubewise-code/mdxpy

1.3.2

07 Aug 13:46
Compare
Choose a tag to compare

What's Changed

  • Add drilldown hierarchy with levels by @vishn90 in #43

Full Changelog: 1.3...1.3.2

1.3

14 Apr 12:29
Compare
Choose a tag to compare
1.3

What's Changed

  • Introduce head and skip_dimension_properties in to_mdx function by @MariusWirtz in #41

Full Changelog: 1.2...1.3

1.2

19 Jan 11:37
Compare
Choose a tag to compare
1.2

Add pyproject.toml

1.1

06 Dec 17:04
Compare
Choose a tag to compare
1.1

What's Changed

1.0

09 Oct 19:44
Compare
Choose a tag to compare
1.0

Allow Dimension Properties Per Axis

Allows dimension properties per axis (#18, #34 ). Sample:

from TM1py import TM1Service

from mdxpy import MdxBuilder, MdxHierarchySet, Member, DimensionProperty

with TM1Service(address='localhost', port=12354, ssl=True, user="admin", password="apple") as tm1:
    query = MdxBuilder.from_cube("c1")
    query.add_hierarchy_set_to_row_axis(MdxHierarchySet.all_leaves("d1", "d1"))
    query.add_properties_to_row_axis(DimensionProperty("d1", "d1", "Description"))
    query.rows_non_empty()
    query.add_hierarchy_set_to_column_axis(MdxHierarchySet.member(Member.of("d2", "e1")))
    query.columns_non_empty()

    print(query.to_mdx())

    df = tm1.cells.execute_mdx_dataframe(mdx=query.to_mdx(), include_attributes=True)
    print(df.head(4).to_markdown())

Output

SELECT
NON EMPTY {[d2].[d2].[e1]} DIMENSION PROPERTIES MEMBER_NAME ON 0,
NON EMPTY {TM1FILTERBYLEVEL({TM1SUBSETALL([d1].[d1])},0)} DIMENSION PROPERTIES [d1].[d1].[description] ON 1
FROM [c1]
d1 Description d2 Value
0 e1 a1 e1 1
1 e2 a2 e1 2
2 e3 a3 e1 3
3 e4 a4 e1 10

0.4

19 Aug 16:34
Compare
Choose a tag to compare
0.4

What's Changed

New Contributors

Full Changelog: 0.3...0.4

0.3

15 Aug 19:44
Compare
Choose a tag to compare
0.3
Update setup.py