I think it seems to be impossible or too-very difficult without any hard coding.
If you could create a Parameter and some calculations, it may be accomplished (but not completely).
Here is a sample I tried with using Parameter.
If this is similar to one you desired, please check attached workbook.
Appreciate your reply Saito!!!
Sorry for taking time to validate the solution that was provided.
I could see that you have done few hard codes in the solution i.e. Sets, Country Param and i think these cannot be refreshed during refreshes. We need to edit it manually which might yield to some errors and will not apt for our scenarios.
Is there any other work around which you could think of that works dynamically with less call fields because we have more than 100M of records which might impact performance.