MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now Learn More
Quote from: khanna100 on 07 Nov 2024 10:01:29 AMAfter you retire, is somebody else taking over?
Quote from: MatusM on 04 Nov 2024 03:45:41 AMHi,
my data looks like:
Account Item Balance Alpha Item A1 500 Alpha Item A2 800 Alpha Item A3 1200 Beta Item B1 900 Beta Item B2 1500 Gama Item G1 100 Gama Item G2 200 Gama Item G3 200 Gama Item G4 200
In Cognos (12.0.3) report crosstab, I need to categorize Accounts into:
- Top Accounts with total Balance > 1000 per Account
vs
- Long Tail with lower Balance.
I'm doing this by calculated field:
Categoryif ([Balance] >= 1000)
then ('Top Account')
else ('Long Tail')
But I'm not able to instruct Cognos to summarize Items first, just then categorize the Accounts.
So the result is:
Account Item Balance Category Alpha Item A1 500 Long Tail Alpha Item A2 800 Long Tail Alpha Item A3 1200 Top Account Beta Item B1 900 Long Tail Beta Item B2 1500 Top Account Gama Item G1 100 Long Tail Gama Item G2 200 Long Tail Gama Item G3 200 Long Tail Gama Item G4 200 Long Tail
But outcome I need is this:
Account Item Balance Category Alpha Item A1 500 Top Account Alpha Item A2 800 Top Account Alpha Item A3 1200 Top Account Beta Item B1 900 Top Account Beta Item B2 1500 Top Account Gama Item G1 100 Long Tail Gama Item G2 200 Long Tail Gama Item G3 200 Long Tail Gama Item G4 200 Long Tail
How do I achieve it, please?
Thank you!
if (total([Balance] for [Account]) >= 1000)
then ('Top Account')
else ('Long Tail')
Account | Item | Balance |
Alpha | Item A1 | 500 |
Alpha | Item A2 | 800 |
Alpha | Item A3 | 1200 |
Beta | Item B1 | 900 |
Beta | Item B2 | 1500 |
Gama | Item G1 | 100 |
Gama | Item G2 | 200 |
Gama | Item G3 | 200 |
Gama | Item G4 | 200 |
if ([Balance] >= 1000)
then ('Top Account')
else ('Long Tail')
Account | Item | Balance | Category |
Alpha | Item A1 | 500 | Long Tail |
Alpha | Item A2 | 800 | Long Tail |
Alpha | Item A3 | 1200 | Top Account |
Beta | Item B1 | 900 | Long Tail |
Beta | Item B2 | 1500 | Top Account |
Gama | Item G1 | 100 | Long Tail |
Gama | Item G2 | 200 | Long Tail |
Gama | Item G3 | 200 | Long Tail |
Gama | Item G4 | 200 | Long Tail |
Account | Item | Balance | Category |
Alpha | Item A1 | 500 | Top Account |
Alpha | Item A2 | 800 | Top Account |
Alpha | Item A3 | 1200 | Top Account |
Beta | Item B1 | 900 | Top Account |
Beta | Item B2 | 1500 | Top Account |
Gama | Item G1 | 100 | Long Tail |
Gama | Item G2 | 200 | Long Tail |
Gama | Item G3 | 200 | Long Tail |
Gama | Item G4 | 200 | Long Tail |
BSP Software Documentation |
MetaManager Documentation and Knowledgebase |
Version Control Documentation and Knowledgebase |
BSP Software | Resources | About Us | ||
MetaManager | BSP Software Training | BSP Software | ||
Integrated Control Suite | YouTube Channel | Micro Strategies Inc | ||
Security Migration | IBM Cognos | |||
Integrated Management Suite | ||||