Skip to content

Commit

Permalink
Merge pull request #48 from vviau/Restructure_Folders
Browse files Browse the repository at this point in the history
Restructure folders and update README.md file
  • Loading branch information
vviau authored May 22, 2019
2 parents ea17ab8 + f9bfc21 commit ffd0a54
Show file tree
Hide file tree
Showing 86 changed files with 37,933 additions and 246 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from TM1py import TM1Service, NativeView, AnonymousSubset

import configparser
config = configparser.ConfigParser()
config.read('..\config.ini')

mdx = """
SELECT
NON EMPTY {[Date].[2017-11-26], [Date].[2017-11-27]} * {[Bike Shares Measure].[Count]} ON ROWS,
Expand All @@ -8,7 +12,7 @@
WHERE ([Version].[Actual])
"""

with TM1Service(address='10.77.19.60', port=12354, user='admin', password='apple', ssl=True) as tm1:
with TM1Service(**config['tm1srv01']) as tm1:
pivot = tm1.cubes.cells.execute_mdx_dataframe_pivot(mdx=mdx)
print(pivot)

Expand Down Expand Up @@ -39,7 +43,7 @@
dimension_name="Version",
elements=["Actual"]))

with TM1Service(address='10.77.19.60', port=12354, user='admin', password='apple', ssl=True) as tm1:
with TM1Service(**config['tm1srv01']) as tm1:
if tm1.cubes.views.exists(cube_name="Bike Shares", view_name="Bike Shares By City", private=False):
tm1.cubes.views.delete(cube_name="Bike Shares", view_name="Bike Shares By City", private=False)

Expand Down
8,696 changes: 8,696 additions & 0 deletions Data/reading_data.csv

Large diffs are not rendered by default.

Loading

0 comments on commit ffd0a54

Please sign in to comment.