Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have written a set expression
sum({1<Market_Name={'A'}, Product_Name=p(Product_Name), Channel_Name=p(Channel_Name)>} Volume)
I have another expression which gives me possible channel value for the product type
concat({$<Product_Type={'A'}>} Distinct Channel_Name)
I want to insert this expression in the above expression in place of channel name. So basically my
Channel_Name= concat({$<Product_Type={'A'}>} Distinct Channel_Name)
So how do i write nested set expression to do this.
Regards,
Sumit Harsh
Try:
sum({1< Market_Name={'A'},
Product_Name=p(Product_Name),
Channel_Name={ $(=concat({$<Product_Type={'A'}>} Distinct Channel_Name,',')) }
>} Volume)
Try:
sum({1< Market_Name={'A'},
Product_Name=p(Product_Name),
Channel_Name={ $(=concat({$<Product_Type={'A'}>} Distinct Channel_Name,',')) }
>} Volume)
Thanks Gysbert but this is working when my possible channel is only 1, if it is more than 1 i am getting 0 value.
I guess we need to concatenate channel names. But i am not sure how to use concat again in the set expression ??
heres a copy & paste of somehting which may help when setting variables ect.
Thanks Gysbert the last expression was only working for multiple channels, i was missing that comma after channel name.
Thanks a ton