Need unique element through versions
Hi!
I've got a module with few dimensions, including versions, I generate code there for a list to update.
So I need to filter unique code. Currently, I use formulae:
IF RANK(1, ASCENDING, SEQUENTIAL, TRUE, 'List name') = 1 THEN 'List name' ELSE BLANK
But it does not work properly through versions (return duplicates)
Is there any other way to get unique elements within multiple versions?
I would appreciate any assistance!
Best Answer
-
Hi,
To be honest, the setup of Unique Codes should be done outside of Anaplan, since Anaplan is a client facing tool and not a database tool.
Having said that, please see if the following works.
1. Concatenate.All combines all All Entries.Code using TEXTLIST.
2. All Entries.'Count 2' counts the number of All Entries.Code in the entire list.
3. All Entries.'Unique Code 2' grabs All Entries.Code where All Entries.'Count 2' = 1
Thanks,
LipChean
0
Answers
-
Hi,
I'll be helpful if you can create and share an excel mockup of what you're trying to achieve.
Thanks,
LipChean
0 -
-
Hi,
If i just look at the first row, what are "BU", "UA", "2610", "1", "302066"?
Why is the Code for row 1 and 2 the same?
Why do you have different separators of _ and *?
Thanks,
LipChean
0 -
It is the code, that is generated automatically and consist of few codes of other items such as Bussiness unit (bu_ua), product code and others, but this is not the matter.
The matter is that i need to filter unique codes throughout all dimensions including versions.
Thank you.
0 -
And the mater also is that there might be duplicates in code, so as I mentioned before, I need to filter unique ones
0 -
Hi,
What do you mean by 'filter unique codes throughout all dimensions including versions'?
Perhaps you can show the expected end results in another screen shot?
Thanks,
LipChean
0 -
-
Hi,
There are 2 lists, All_Entries corresponds to your longer list; Alphabets corresponds to unique members created from your longer list.
The 'Code' line item is of 'Text' format, this is used to create the 'Alphabets' list through import action.
The rest of the formulas are shown.
Thanks,
LipChean
0 -
Hi, thank you, but this won't work for me.
Because this will do if all letters are in the list 'Alphabets' (you count letters in the list)
if I import new data (letters F,G,H...), code(List) column will be empty for new letters.
I need to filter new unique letters(F,G,H...) that are not in the list yet
0 -
Hi,
You can perform 2 imports sequentially, i.e. the first from whatever source into 'All Entries', and then the second from 'All Entries' into 'Alphabets'.
You can incorporate a delta mechanism, such that previously imported 'All Entries' are flagged, and not imported again from 'All Entries' into 'Alphabets'.
Thanks,
LipChean
0 -
Yes, 2 sequential imports will do.
But I hoped to solve with formulae because I have too many imports and a huge amount of items in the model, so duplicating imports will affect Its speed
0 -
Maybe I am missing something, but if you create a list based on the code, that will only generate unique values (you can ignore the duplicate value errors)
You can then bring the data into a module by country, list, version and the list created above
David
0 -
Hi David.
This is exactly what I'm trying to avoid, many imports in model generating duplicate value errors, so I need to form views with unique elements.
0 -
0
-
A better solution is to try and get the file sorted at source and have only the unique members in the file
Can you ask to provider of the file to do this? It will simplify the problem because Anaplan is not an ETL tool
David
0 -
I agree with @DavidSmith, i.e. "Can you ask to provider of the file to do this? It will simplify the problem because Anaplan is not an ETL tool"
Remember, just because we can do it, doesn't mean we should do it.
As mentioned at the beginning of my suggestion, the setup of Unique Codes should be done outside of Anaplan, since Anaplan is a client facing tool and not a database tool.
Thanks,
LipChean
0 -
I'm not sure if the customer's IT dept would be able to generate these codes, but I'll try
Thanks again.
0