Hi ,
We have an important issue thats happening in cognos transformer where it cannot handle more than 65000 categories under a member .
We have no problem in tm1 in loading how many ever members . Sowe daily do a extract to cognos seperatley a flat file for products dimensions and seperate flat file for other dimensions and measures.
The issue happened was for 1 level of product it has a children which is more than 65000 categories. Eventhough all these catgories doesnot have sales its still sent and trying to load in cognos .
In tm1 while I do a asciooutput can i do somrthing like if a product level is say 10-1-150 -100 then take its material and check if it has sales for last 4 years and quantity for last four years and if its doesnot have then i will not extract to cognos .
Can this MDX be easily written and will not casue any performance issues on the extract? should i write a mdx subset and get all elements that has sales or qty greate than zero ?
Any thoughts or suggestions is appreciated.
TM1 Product Dimension Extract
-
- Posts: 124
- Joined: Wed Nov 26, 2014 8:32 pm
- OLAP Product: IBM TM1, Planning Analytics
- Version: PA 2.0.5
- Excel Version: 2016
Re: TM1 Product Dimension Extract
I can write something like this
{FILTER( {TM1FILTERBYLEVEL( {TM1SUBSETALL( [Product] )}, 0)},
[Test].([Product].CurrentMember, [Posting Measures].[Amount]) > 18 )}
I can check something similar like Amount and qty is not equal to zero . This will ensure i get all the products that had a sale or not .
But say if there was 4 transactions with -10.-5 ,10 ,5 and this will net to zero and will this casue this material not to be in the result . Is there an mdx that can give the results for the above option as well
Thanks
{FILTER( {TM1FILTERBYLEVEL( {TM1SUBSETALL( [Product] )}, 0)},
[Test].([Product].CurrentMember, [Posting Measures].[Amount]) > 18 )}
I can check something similar like Amount and qty is not equal to zero . This will ensure i get all the products that had a sale or not .
But say if there was 4 transactions with -10.-5 ,10 ,5 and this will net to zero and will this casue this material not to be in the result . Is there an mdx that can give the results for the above option as well
Thanks
-
- MVP
- Posts: 3233
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: TM1 Product Dimension Extract
Incorporate a count with a cellincrement of 1. Then it’s part of you cube, ready for use in the MDX.
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
-
- Posts: 124
- Joined: Wed Nov 26, 2014 8:32 pm
- OLAP Product: IBM TM1, Planning Analytics
- Version: PA 2.0.5
- Excel Version: 2016
Re: TM1 Product Dimension Extract
Can you please give an example , where should this count be done with cell increment.
Thanks,
Thanks,
-
- MVP
- Posts: 3233
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: TM1 Product Dimension Extract
I see that you have a measures dimension called "Posting measures", with Amount as element.
Add another element "Count" and populate it in the same way. For example, do CellIncrementN( 1, cube, ..., ..., 'Count' ) to each time add 1 to the Count.
Add another element "Count" and populate it in the same way. For example, do CellIncrementN( 1, cube, ..., ..., 'Count' ) to each time add 1 to the Count.
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
-
- Posts: 124
- Joined: Wed Nov 26, 2014 8:32 pm
- OLAP Product: IBM TM1, Planning Analytics
- Version: PA 2.0.5
- Excel Version: 2016
Re: TM1 Product Dimension Extract
Hi Wim ,
Thanks for the suggestions, One question here so i wanted to check for manly three measures like qty,sales and budget if that material has any instance .
so i put my source view with all n for all dimensions with 3 measures on measure dimension and a currency dimension where it has input or local currency with two values in source.
But i will always write the count to count measure .
Question here is I know dont have a consolidation for InPut Currency and Local currecny in currency dimension and All months in month dimension ,
When doing MDX I had to create one consolidation for this dimensions right?
Is there a code I can grab both input currency and local currency total .
Thanks for the suggestions, One question here so i wanted to check for manly three measures like qty,sales and budget if that material has any instance .
so i put my source view with all n for all dimensions with 3 measures on measure dimension and a currency dimension where it has input or local currency with two values in source.
But i will always write the count to count measure .
Question here is I know dont have a consolidation for InPut Currency and Local currecny in currency dimension and All months in month dimension ,
When doing MDX I had to create one consolidation for this dimensions right?
Is there a code I can grab both input currency and local currency total .
-
- MVP
- Posts: 3233
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: TM1 Product Dimension Extract
Maybe you need more than 1 Count measure. Or use an OR statement in the MDX: if Count_1 > 0 OR Count_2 > 0. Or simpy an addition: if Count_1 + Count_2 > 0
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly