DDD <- summarise(
group_by(Customers, Last_region, Last_state, Last_city),
Count = length(Last_city),
Total = sum(Customer.Value, na.rm = TRUE),
Percent = sum(Customer.Value * 100 / sum(Customer.Value, na.rm = TRUE)))
I have tried this code.I get the group by for total & count but not for percent ?