Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a table that lets say shows salesmen, month, sales and reasons for sale. If sale has happened it is stated with 1 - if not it says 0.
Reasons are counted as these are stated with text. In the last colum I want to show the percentage of sales by dividing with reason, but I can't get this working. Either the result is 0%, 100% or even higher
In the Sales dimension there is a expression calculating sales for the selected month;
Sum({1<sales ={"1"},[Month]=p([Month])>}sales)
In the Reason dimension there is a expression counting reasons
Count(reasons)
Salesmen | Month | Sales | Reasons | Percentage |
---|---|---|---|---|
John | JAN | 200 | 5 | 99,97% |
Dave | JAN | 50 | 50 | 100,00% |
Mary | JAN | 100 | 10 | 99,90% |
Kate | JAN | 150 | 20 | 99,86% |
Is this not working?
1 - (Count(reasons)/Sum({1<sales ={"1"},[Month]=p([Month])>}sales))
So what are the expected numbers that you are looking to get?
Oops - sorry, was a little bit late yesterday!
The output I want is Reasons/Sales-100%
I have updated the table.
Is this not working?
1 - (Count(reasons)/Sum({1<sales ={"1"},[Month]=p([Month])>}sales))
Hi Sunny,
Thank you ever so much! This was the correct input
Regards
Nina