on 09-19-2014 11:48 AM
Hello Experts,
I have requirement to show the number of complaints against Category.
Basically, my data looks like as follows:
Transaction Number | Category ID 1 | Number |
8000000008 | Billing | 1 |
8000000008 | Metering | 1 |
8000000009 | Collections | 1 |
8000000009 | CMP | 1 |
8000000010 | Metering | 1 |
I want to have table like below:
Category ID 1 | Number |
Billing | 1 |
Metering | 2 |
Collections | 1 |
CMP | 0 |
Here, for transaction number 8000000008, there are two categories Billing and Metering and my requirement is to have a table with just Category and Number and for this transaction number either of the category should show 1. Similarly, if there are any other transaction numbers for that category it should those as well.
Basically, it should not consider the duplicate transaction numbers.
I have tried formula - Previous but it works when you have transaction number in the layout. If transaction number is removed from layout. it gives me #Multivalue error.
Any immediate help would be appreciated.
Thanks in advance!
Regards
Lavanya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why does the CMP category have a zero in your ideal output table? Surely this should be a one, due to transaction 8000000009?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, your requirement is still vague.
Looking at your example data, Transaction 8000000008 references two categories, and they both seemed to be reflected in your summarised output (metering & billing) However, Transaction 8000000009 also references two categories (collections & cmp), yet only one is referenced in the summarised output - cmp is zero?
If you only want to count each Transaction number once, irrespective of Category, then how do you decide which Categories to include and which to exclude? Alphabetical order?
You're still not explaining the basis. To me, it looks like you're counting the FIRST Category ID from each Transaction, but there is no logic to their order - they're not in Alphabetical order, otherwise CMP would come before Collections for Transaction 8000000009.
If you don't explain the reasons behind your requirement, people are going to waste their time and yours suggesting mechanisms that may not be appropriate. Please save us all a lot of time and effort by clearly stating your requirements, with examples and how they are derived.
Hi Lavanya,
You can create a block as follows:
Category Id Number1
[Number1] could be defined as follows:
=Max([Number] ForEach ([Transaction Number]) )
This should display one Number value per transaction per Category.
Try and check if it helps.
Regards,
Yuvraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As you mentioned above , your data looks like :
Here declare Transaction number as dimenion to avoid aggregation at report level.
And Number field as measure and aggregation function : Sum
Once you remove Transaction number object from the report layout, then your data will looks like as follows:
Please check and let me know how it goes.
Regards,
Pranay
=count(Category ID foreach (Transaction Number))
or
=count(Category ID IN (Transaction Number))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.