There are several issues with ranged units (guns, not indirect like bows) in the current Total War Warhammer game. They have tried a few things to address it, such as allowing the first few feet to be uhh not there, or at one point comically allowing you to just flat out shoot through allied units with zero penalty.
I'm hopeful that the new game engine improves things. We are looking at an alpha here after all.