Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi guys,
I want to count the number of profit center with NPM Total Sales NC <=0
I used the following formula, but it does not work:
count({<sum(NPM_TOTAL_SALES)={0}}> PROFIT_CENTER)
Any idea,
Many thanks,
Edi
Try this
Count({<PROFIT_CENTER = {"=Sum(NPM_TOTAL_SALES) <= 0"}>} PROFIT_CENTER)
Try this
Count({<PROFIT_CENTER = {"=Sum(NPM_TOTAL_SALES) <= 0"}>} PROFIT_CENTER)
Hi Sunny
many thanks. It works perfectly. I really appreciate your help.
I used sth like this:
Count(distinct {<PROFIT_CENTER = {"=Sum(NPM_TOTAL_SALES) <= 0"}>} PROFIT_CENTER)
I have still a question. Can you please explain me in a brief manner how this formula works? because I do not understand why you put PROFIT_CENTER twice.
regards,
Edi
So, within the set analysis, the expression is checking if Sum(NPM_TOTAL_SALES) is less than or equal to 0 for a PROFIT_CENTER. If it is, then include it in the calculation... if not then exclude it.
Hi Sunny,
Can you please be kind and explain what you have set up "" into the set analysis and the = which precedes the Sum function.
Best regards,
Edi