Dear Muhammad, the answer for your question could be very simple: there is no a unique formula taking in consideration all the texture cases, because these are very diverse and complex situations that appart intensities, profile (and even Bragg angles) from the values of ideal crystals. But don't be discouraged, some cases were studied and formulae deduced. For example, in my paper General theory of the effect of granularity in powder X-ray diffraction, November 1987, Acta crystallographica. Section A, Foundations of crystallography 43(6):769-774 (full paper available here) you may find results for lack of uniformity in powder size, and density. In the studies of laminated or forged metals including XRD you could find many results about the influences of textures. The first question is to reduce your seek to a material or a group o materials that you interested in, and then to read the books and articles dealing with this complex matter.
please go through the first six answers (up to Nadir Fadhil Habubi) of a similar question from some years ago. There you will find the formula and the references for that formula...
The texture coefficient of plane represents the texture of a particular plane, whose deviation from the standard sample implies the preferred growth. The film thickness has a direct impact on the texture of the growing material.
The full width at haft maximum of each XRD peak was used to calculate the texture coefficient of each crystal plane through the equation below: Where ℎ is the intensity of (hkl) peak, 0,ℎ is the relative intensity of (hkl) peak from JCPDS card, and N is the number of considered peaks:
you can see the following paper:
AZO Thin Films by Sol-Gel Process for Integrated Optics
Crystalline Size Effects on Texture Coefficient, Electrical and Optical Properties of Sputter-deposited Ga-doped ZnO Thin Films
Determination of Texture Coefficients via X-ray diffraction
Synthesis and characterization of sputtered Cd1-xMgxTe alloy and their applications in solar cells
Texture coefficient and Conductivity Dependence on the Annealing
How to calculate texture coefficient from xrd? - YouTube