Merge Similar Account Heads in accounting settings

Hi,
I have checked Merge Similar Account Heads Setting in the accounts and created the journal entry under same account head but it is not merging how does this setting work can anyone please tell me with example ?