Assume your initial concentrations are in kg/100 kg (wt%).
Find the initial amounts. Take a basis of 100 kg of total material. This gives you the initial masses $m_j$ of C, Cr, and Fe in your sample.
Prepare to do the chemical reaction. Convert the initial masses $m_j$ to initial moles $n_j$ using the molar mass $M_j$ with $n_j = m_j/M_j$.
Determine which component is limiting the final product. The reaction consumes 23 moles of Cr per 6 moles of C. Assume that the reaction goes to completion. Take the ratio of $n_{Cr}/n_C$ from the above. If it is greater than $23/6$, C is limiting. Otherwise, Cr is limiting.
Do the chemical reaction. Assume that the reaction has a yield of $y$ as a relative amount. A value $y = 0$ is no reaction and $y = 1$ is complete reaction. Use the moles of the limiting reactant (either C or Cr). The moles of the precipitate that form $n_{Cr23C6}$ is found by the expression $n_{Cr23C6} = y\ n_C/6$ if C is limiting or $n_{Cr23C6} = y\ n_{Cr}/23$ if Cr is limiting. The moles of C left is $n_{C,f} = n_C - 6\ n_{Cr23C6}$. The moles of Cr left is $n_{Cr,f} = n_{Cr} - 23\ n_{Cr23C6}$.
You now have the final composition in moles for C, Cr, Cr$_{23}$C$_6$, and Fe (unchanged). Determine the relative molar composition or convert the final moles back to masses and determine the relative mass composition.