Forum Discussion
Sales Ratios Display
- Anonymous5 years ago
Hi JMSNYC
For your requirement I would use the below formula to calculate by each country.
SR = CACLULATE(divide('FACT'[Sales],DISTINCTCOUNT('FACT'[Customer ID]),ALLEXCEPT('FACT','FACT'[Customer ID]))
I'm not sure I'm following you. Your measure will divide the sales for a given country in a given month by the number of customers in that country in that month, which sounds correct. The total is just the total sales by month divided by the customers that month.
So what do you need to calculate? Can you provide. Depiction of the expected result?
Hi Paul.
Thank you for your quick follow-up question. Here is an example
I would like the measure to compute numbers the way it is described in the Green Table, while today, as per the example, the computing follows the red sample.
Is it more clear? Thank you again for your support.
- PaulDBrown5 years agoCommunity Champion
Again, I'm not sure what is going on at your end. Here is a dummy dataset:
If I want to see the number of items divided by the number of customers for each country by month, the measures are straightforward:
1) Number Items = SUM(FactTable[Items])
2) Number of Customers = DISTINCTCOUNT(FactTable[Customer ID])
3) Items by Customer = DIVIDE([Number Items], [Number of Customers])
and you get this: