Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have the following problem
I have variable vUserCompanyCode with store company codes (loaded from excel) for specifed user
I have sample expresion below ( working)
sum( if( WildMatch(CompanyCode, 10,20,25,30) , NetSales))
but when i use variable ( the result is emty), variable have the same value (10,20,25,30)
sum( if( WildMatch(CompanyCode,$(vUserCompanyCode)) , NetSales))
Regards
Łukasz
No. The vUserComnayCode variable looks fine. You need to change the expression as sum( {<CompanyCode={$(=vUserCompanyCode)}>} NetSales).. Since you are using formula in your vUserCompanyCode. If the above one not work, then try with '$(vUserCompanyCode)'.. Let me know..
why dont you use set analysis instead to narrow down the Company codes.
sum( {<CompanyCode={$(=vUserCompanyCode)}>} NetSales)
I also try use set analysis as you write.
Unfortunately, it not helps
what is the exacts out put of the variable vUserCompanyCode?
it should work if it is- 10,20,25,30
Sample qvw would help too
Hi Lukasz,
Change the variable vUseCompanyCode values Format like below,
'10', '20', '25', '30'
Expression as
sum( if( WildMatch(CompanyCode,$(vUserCompanyCode)) , NetSales))
Hi,
Hi,
Try this
Sum({<CompanyCode={'$(vUserCompanyCode)'}>} NetSales)
Unfortunately, it did not help.
I noticed one more thing.
If I load to this variable only one company code, then everything works, if I load more than one Unfortunately not.
Simply write in your variable as =10,20,25,30
Then write an expression like below;
Sum({<CompanyCode ={$(vUserCompanyCode)}>}Net Sales)
Dear Lukasz,
I believe your question has been answered. kindly mark the thread as answered, so that other members can refer to this post.