Exception Views
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Exception Views
Guys,
Is there a quick and easy of creating views that are exception based? For example were you have demand but no capacity? Filter views won't do this. I was looking at the filter on the cube export but my mind has left me.... (It is a monday after all!!)
Jim.
Is there a quick and easy of creating views that are exception based? For example were you have demand but no capacity? Filter views won't do this. I was looking at the filter on the cube export but my mind has left me.... (It is a monday after all!!)
Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- Site Admin
- Posts: 6667
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Exception Views
Not really a quick and easy one, no. Though if the elements that you're checking for are well defined...jim wood wrote: Is there a quick and easy of creating views that are exception based? For example were you have demand but no capacity? Filter views won't do this. I was looking at the filter on the cube export but my mind has left me.... (It is a monday after all!!)
We do have one chore which interfaces data from one cube to another. At the end a process creates a view to return all of element A's values for the period, which should have corresponding values in element B. T.I. iterates through that view checking element B's value for the combination, and wherever element B is 0 or negative, spits that out via AsciiOutput. (Actually there are some other checks done as well, but that's the gist of it.) The Ascii file, if any, is loaded into Excel via the same VBA code that triggers the chore. Et voila, an end report of exceptions loaded up in Excel (and formatted via VBA as well).
However this only works because we know exactly what we're checking for, and it doesn't change that often. It's not a method that would work that well if more "fuzzy" exception checking was needed.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- MVP
- Posts: 195
- Joined: Wed Jul 22, 2009 10:35 pm
- OLAP Product: TM1
- Version: 9.5.2 FP3
- Excel Version: 2010
Re: Exception Views
Isn't subset with MDX such a method?jim wood wrote: Is there a quick and easy of creating views that are exception based? For example were you have demand but no capacity?
Once you prepare and MDX that checks values in two or more columns, it is easy to change columns and conditions when you need to change your exception investigations.
-
- Site Admin
- Posts: 6667
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Exception Views
The thought of using MDX did occur to me, but since we have only a kinda-sorta implementation of MDX in TM1 it's not immediately obvious to me how Jim's goal could be achieved using it. But if you have examples that you'd like to share I'm sure I wouldn't be the only one interested...jstrygner wrote:Isn't subset with MDX such a method?jim wood wrote: Is there a quick and easy of creating views that are exception based? For example were you have demand but no capacity?
Once you prepare and MDX that checks values in two or more columns, it is easy to change columns and conditions when you need to change your exception investigations.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Exception Views
Using active forms I would say it is now incredibly easy to create exception reports with logic for example:
where measure A > x and measure B < y
To produce a filtered list of elements and be able to swap measures, values, time periods etc for the filter. This is possible even without advanced knowledge of MDX.
where measure A > x and measure B < y
To produce a filtered list of elements and be able to swap measures, values, time periods etc for the filter. This is possible even without advanced knowledge of MDX.
-
- MVP
- Posts: 195
- Joined: Wed Jul 22, 2009 10:35 pm
- OLAP Product: TM1
- Version: 9.5.2 FP3
- Excel Version: 2010
Re: Exception Views
Alan, either there is something I am missing here, or I don't know, why you asked itAlan Kirk wrote:But if you have examples that you'd like to share I'm sure I wouldn't be the only one interested...

Nothing more than you can find in MDX_Primier. You build what you want (even compare values between cubes), especially if you do not have the 256 characters limit (I assume jim is on 9.5.2).
And yes, good tip from lotsaram, which led me to try... ISB - it also enables adding own column formulas somewhere on the right and apply Excel filter, what is more, you can slice and dice without coming back to CubeViewer.lotsaram wrote: Using active forms I would say it is now incredibly easy to create exception reports with logic for example:
where measure A > x and measure B < y
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: Exception Views
I've not really used active forms, but if I remember rightly aren't these excel based? I'm trying to do this in a view. I'm not using excel. Apologies if I'm mistaken.lotsaram wrote:Using active forms I would say it is now incredibly easy to create exception reports with logic for example:
where measure A > x and measure B < y
To produce a filtered list of elements and be able to swap measures, values, time periods etc for the filter. This is possible even without advanced knowledge of MDX.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: Exception Views
MDX now there are 3 letters that make me twitch. I'll have a look but I'll probably end up throwing my laptop out of the window!!!jstrygner wrote:
Isn't subset with MDX such a method?
Once you prepare and MDX that checks values in two or more columns, it is easy to change columns and conditions when you need to change your exception investigations.

On second thoughts I might try Alan's TI option. I've always been a bit of a coward.

Thanks for all your help though guys,
Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Exception Views
Hi Jim - why does the exception report have to be in a view and not Excel? You could do it with a view if you had a helper string cube to capture parameters and made extensive use of StrToMember function and .CurrentMember but the MDX would become very complicated. Versus doing it in an active form is I would say dead easy and allows for fancy conditional formatting with all Excel goodies and also can be used in TM1 web.jim wood wrote:I've not really used active forms, but if I remember rightly aren't these excel based? I'm trying to do this in a view. I'm not using excel. Apologies if I'm mistaken.
Paramatizing MDX by parsing values in Excel is not too complicated (and at least 1 or 2 orders of magnitude less complicated than trying to do it with pure MDX outside of Excel). You don't need anything more than a active form using the MDX parameter in the Tm1RptRow function. So what exactly is the aversion to active forms and MDX?
I have some worked examples but I would need to get permission from a former employer to be able to drop them in the tips & tricks section... If you have a cube you can share (for example hypothetical demand>0 capacity<=0) then I could bash out an example, wouldn't be too much trouble.
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: Exception Views
Cheers Lotsa. If you could pass an example I would be grateful. If your not able to don't worry. I spoken to the powers that be and I think I have managed to convince them that doing an active form in excel might be the best way forward.
The original plan was to try and do it in a view as we are still not sure how this is going to be deployed over a WAN,
Jim.
The original plan was to try and do it in a view as we are still not sure how this is going to be deployed over a WAN,
Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- Community Contributor
- Posts: 349
- Joined: Tue Aug 17, 2010 6:31 am
- OLAP Product: Planning Analytics
- Version: 2.0.5
- Excel Version: 2016
Re: Exception Views
Just a thought but do you have Cognos BI? This would be extremely easy to do using query or report studio.
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: Exception Views
No CognosBI available but thanks,
Jim.
Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- Site Admin
- Posts: 6667
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Exception Views
You mean this part of the MDX Primer, considering that the original question was how to build a view which you then indicated could be done with MDX?jstrygner wrote:Alan, either there is something I am missing here, or I don't know, why you asked itAlan Kirk wrote:But if you have examples that you'd like to share I'm sure I wouldn't be the only one interested...![]()
Nothing more than you can find in MDX_Primier.
You're right, I can't imagine what I was thinking of when I asked you to demonstrate how you planned to do that.Page 3 of the MDX Primer wrote:TM1 currently (as of 9.0 SP2) only allows users to use MDX to create dimension subsets and not to define cube views.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- MVP
- Posts: 195
- Joined: Wed Jul 22, 2009 10:35 pm
- OLAP Product: TM1
- Version: 9.5.2 FP3
- Excel Version: 2010
Re: Exception Views
No, I didn't intent to suggest you can construct a view via MDX. I just meant you can influence elements presented in particular subsets that already are part of a view. I thought this was enough to meet jim's needs.Alan Kirk wrote: You mean this part of the MDX Primer, considering that the original question was how to build a view which you then indicated could be done with MDX?
Now I know why you asked your question and what "I was missing there" while wondering why you did it.
I have a feeling you got insulted by my comment.Alan Kirk wrote: You're right, I can't imagine what I was thinking of when I asked you to demonstrate how you planned to do that.
If so, my apologies. Believe me, it was not my intention to insult you.
-
- Site Admin
- Posts: 6667
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Exception Views
OK, I see what you meant now, you see what I meant now.jstrygner wrote:No, I didn't intent to suggest you can construct a view via MDX. I just meant you can influence elements presented in particular subsets that already are part of a view. I thought this was enough to meet jim's needs.Alan Kirk wrote: You mean this part of the MDX Primer, considering that the original question was how to build a view which you then indicated could be done with MDX?
Now I know why you asked your question and what "I was missing there" while wondering why you did it.
I have a feeling you got insulted by my comment.Alan Kirk wrote: You're right, I can't imagine what I was thinking of when I asked you to demonstrate how you planned to do that.
If so, my apologies. Believe me, it was not my intention to insult you.
Just a misunderstanding between friends, don't sweat it.

"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.