Cerium and ytterbium compounds are systems that exhibit original magnetic, electronic and thermodynamic properties at low temperatures such as the Kondo effect, heavy fermions, intermediate valence and charge density wave. These properties are due to the very strong electron-electron interactions of the f states as well as to the hybridization of the f states with the conduction electrons [1, 2]. We investigate the temperature (T)-dependent electronic structure of YbPd, a Kondo mixed-valent cubic compound at high-T which exhibits incommensurate and commensurate charge-density-wave (CDW) ordering in the tetragonal phase below T_1 = 130 K and T_1 = 105 K, respectively. Below 105 K, magnetic Yb^(3+) and nonmagnetic Yb^(2,6+) are arranged alternatively along the c axis, in a tetragonal structure exhibiting valence order [3]. Hard x-ray photoemission spectroscopy of Yb 3d states show T-independent Yb^(2+) and Yb^(3+) features indicating single-Yb site dynamic valence fluctuations above T_1, and a clear T-dependent valence change of the two crystallographic Yb sites in the CDW phase. Simplified single-impurity Anderson model calculations [4] of the Yb 3d and 4f states show good agreement with the T-dependent valency change and provide site-dependent Kondo temperatures. The results indicate an evolution from dynamic mixed-valence in the cubic phase to long range static CDW order in the tetragonal phase, which is driven by the difference in Kondo energies of the two phases [4]. [1] N.E. Bickers D.L. Cox and J.W. Wilkins. Phys. Rev. B, 36(2036), 1987. [2] A.C. Hewson. The kondo problem to heavy fermions. Cambridge Univ. Press, (153), 1993. [3] R. Takahashi et al. Phys. Rev. B, 88(054109), 2013. [4] Y.F. Liao, B. Tegomo Chiogo, et al., Commun Mater 3, 23 (2022).