Your general and wide question will have a general and wide answer. Please explain the matter specifically. What is the voltage level? What is load parameters? What is the cable laying type, ambient temperature, grouping factor? Which standard and code is applicable for the project? What is the cable insulation, EPR, PVC or XLPE? and ....
__________________
A thousand-mile journey begins with the first step.
This calculation is only for reference, you should study related national codes and standards and also refer to cable manufacturer technical catalogues.
You don't select R and X. R is the active resistance and X is the inductive Resistance of selected cable. The value of R and X is to be extracted from cable MFR's technical catalogue or related standards.
For example: Manufacturer: EUPEN, 3-core, Al/XLPE, 240mm²
the active resistance(R) at 90ºC is 0.166 Ω/km and inductive resistance(X) is 0.105 Ω/km and the short circuit withstand current for 0.2 sec. is 50kA.
__________________
A thousand-mile journey begins with the first step.
The biggest concern in MV cable sizingis always short circuit. Hence you must have sufficient knowledge of the protection device above the cable. If it is a Breaker, you need to check how many cycles are required for tripping on a fault. Then leave sufficient margin and then calculate the cable size. If it is a Fuse, check the characteristics; hopefully the fuse will operate in less than half a cycle, which will drastically lower the cable size. Next comes ampacity. Voltage drop is never an issue in MV\HV where currents are low and cable sizes are high. Hence, strictly, the order for MV cable sizing is :
Short circuit...........AMpacity...........voltage drop