Replies: 1 comment
-
Last year we introduced a function to TM1py that retrieves hierarchy information in a shape that is convenient for UI tools like PowerBI. from TM1py import TM1Service
with TM1Service(address='localhost', port=12354, ssl=True, user="admin", password="apple") as tm1:
df = tm1.power_bi.get_member_properties(
dimension_name="Customer",
hierarchy_name="Customer",
member_selection="{TM1SubsetAll([Customer])}",
attributes=["City", "State", "Country/Region", "Longitude", "Latitude"],
skip_consolidations=True
)
print(df.head(2).to_markdown())
it retuns a pandas dataframe so you can easily write it to SQL with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe what did you try to do with TM1py
sample folder dim_get.py
Describe what's not working the way you expect
Didn't get the expected result? Describe: The result provides parent, chld.
Beta Was this translation helpful? Give feedback.
All reactions