Cube View by using Dynamic Time Dimension SubSet
Posted: Sun Oct 20, 2019 3:15 am
Hi all:
I have a question regarding how to create a dynamic time dimension subset ( I am using continuous time dimension type ).
Little back ground:
I need to load rolling 21 days data into a cube using TI process on daily scheduled basis. (ie, delete old one, and load again by fresh downloaded csv)
I using TI to create a 21 days window data view with all the leaf level, then TI will using ViewZeroOut to clear all the leaf data on the cube View.
TI then load freshly downloaded csv with lineup 21 rolling days data and load into cube, then, TI will delete this cube view, and ready for next day.
Problem I am facing:
So, in this cube, during the creating view process, I have hard coded all the leaf elements in the SubSetElementInsert, because, there wouldn't be any changes, then, assign all the subset created to the create view.
However, I have a problem how create a this dynamic rolling 21 days subset from the time dimension.
I have a feeling that I might need to come cross the MDX, but not very confident with the syntax, and if any one could please give a hint.
I have loads of different attributes on the time dimension, ( please see in screenshot ), please also provide you thoughts and helps.
Thanks a lot
W
I have a question regarding how to create a dynamic time dimension subset ( I am using continuous time dimension type ).
Little back ground:
I need to load rolling 21 days data into a cube using TI process on daily scheduled basis. (ie, delete old one, and load again by fresh downloaded csv)
I using TI to create a 21 days window data view with all the leaf level, then TI will using ViewZeroOut to clear all the leaf data on the cube View.
TI then load freshly downloaded csv with lineup 21 rolling days data and load into cube, then, TI will delete this cube view, and ready for next day.
Problem I am facing:
So, in this cube, during the creating view process, I have hard coded all the leaf elements in the SubSetElementInsert, because, there wouldn't be any changes, then, assign all the subset created to the create view.
However, I have a problem how create a this dynamic rolling 21 days subset from the time dimension.
I have a feeling that I might need to come cross the MDX, but not very confident with the syntax, and if any one could please give a hint.
I have loads of different attributes on the time dimension, ( please see in screenshot ), please also provide you thoughts and helps.
Thanks a lot
W