on 07-03-2023 2:40 AM
Hello buddies,
Can you help me? I'd like to compare two attributes from different dimensions in an advanced formula data action. But not working, return this error message: "Dimension attribute [d/ESTABELECIMENTO].[p/ESTAB_FORN] cannot be used in a IF conditional"
IF [d/ESTABELECIMENTO].[p/ESTAB_FORN] != [d/SKU].[p/ESTAB_PROD] THEN
jean.almeida
Currently SAC does not allow to use property comparison on both sides in IF operator in AF. You can try the below workaround which I advised on a related question.
Hope this helps !!
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
jean.almeida
It used to work like this but I was able to recreate this error. Assuming both your attributes are of type integer, try the below , just Add INT before attribute function and it will save.
IF [d/SAP_CEP_SALESORG].[p/Property1]=INT(ATTRIBUTE([d/SAP_CEP_ENTITY].[p/Property2])) THEN
DATA()=1 // sample
ENDIF
Hope this helps !!
Please upvote/accept if this helps
Nikhil
User | Count |
---|---|
70 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
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.