How to categorize list based on 2 partition ID?

How to categorize list based on 2 partition ID?

rajankur6494
Collaborator Collaborator
186 Views
4 Replies
Message 1 of 5

How to categorize list based on 2 partition ID?

rajankur6494
Collaborator
Collaborator

[ FlexSim 21.1.5 ]


Hi Team,

I have to make partition in list based on 2 ID. I am facing error while writing as below:

1661518497052.png

1661518703978.png


Is there any way to do it?

Thank you!


0 Likes
Accepted solutions (1)
187 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

Either combine the two values into one (you would have to convert both to the same type, for example text). Or combine them by making an array out of them ([value1, value2, ...]).

1661522828933.png

Message 3 of 5

rajankur6494
Collaborator
Collaborator

Thank you! @Felix Möhlmann

But it is not pulling content after making partition in this way.

1661751968076.png

Image.png

I would like to ask one more question if I can.

The reason I was looking for such partition so that I could compare it based on condition and content. For eg:

Initially list is full of content and at that time, token will be released based on content change event but it should not consider that it is to be exchanged with fresh lot because content is yet to be consumed. That's why I want to check it based on two condition before exchanging it with fresh lot. 1. Check for content 2. Check for availability (1 for fresh part and 0 for finished part)

My question is how to check partition content based on 2 condition?

Thank you!

0 Likes
Message 4 of 5

rajankur6494
Collaborator
Collaborator

Hi @Felix Möhlmann,

Also, I tried using same partition id as the list is having.

1661755607137.png

But is is not pulling the token in this way.

Thank you!

0 Likes
Message 5 of 5

moehlmann_fe
Enthusiast
Enthusiast

The token on the left just left the source, so it wouldn't have the "Availability" label you are using in the PartitionID. If you either add that label or use a fixed value (0, 1) it should be able to pull entries as normal.

1661759797134.png

0 Likes