In my project, I have several calculation types loaded as "Calc" in an inline table. I've written a different expression for each calculation type except some that are similar, combined into an expression using "Pick()" function.
For example, take these as my calculation types:
Rank;
Group;
Ratio1;
Ratio2;
Ratio3;
The last three items have the same expression that is the amount in the mentioned ratio. The number of these calculation types may increase in future. So I've written this expression for my table: