A potentiometer including a digital one has two ends and a slider. The resistance between the two ends is fixed and is the potentiometer value.
The resistance to the slider from one end, plus the resistance from the slider to the other end, always adds up to the resistance between the two ends (approximately).
So the resistance from one end to the slider of a 100 kOhm potentiometer will vary between 0 and 100 kOhm
There are two main ways that potentiometers can be used. If it is used as a variable resistance, connection is only made to the slider and one end. If the potentiometer is used as a variable potential divider, then the two ends are connected to known voltages, and the voltage on the slider is the output.
When being used as a variable resistance, the tolerance of the value makes a lot more difference. A 100 kOhm potentiometer can be ±20%, so one might be 0 - 80 kOhm, and another might be 120 kOhm. They might vary with temperature as well. For the X9C104, that is up to 300 ppm/°C
Also, when being used as a variable resistance, the slider resistance has to be considered. It's not a lot for a 100 kOhm, as the X9C104 is 100 kOhm and the slider resistance is typically 40 Ohm, 100 Ohm maximum.
When the potentiometer is being used as a potential divider, then the overall resistance doesn't matter, the slider resistance is usually unimportant and the temperature change of the overall resistance doesn't matter. For the X9C104, the ratio only varies by 20 ppm/°C.
Here is one way that you can use a potentiometer to control a power supply. It needs an adjustable regulators that has a feedback voltage that is a lot less than the reference voltage. A 5 V reference can be used and may regulators have a 1.25 V feedback voltage.
If you have a D2A (digital to analog) converter, that can be used instead of the digital potentiometer.