Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I am working with a few different measures that are used to standardise a set of values across multiple inputs.
Now I have hit an issue where the PERCENTILEX.INC calculation is bringing back NaN for the measure: MdxScript(Model) (953, 13) Calculation error in measure 'Fact....'[LowerMiddle]: Cannot convert value '-1.#IND' of type Text to type Number. I also got back a -1#INF cannot convert as well. The values used to create the measure that is being iterated is the created by adding then dividing two very small numbers. a table of examples is below.
| 1.8018E-05 | 6.30631E-05 |
| 0.015151515 | 0.068484848 |
| 0 | 0.0260625 |
| 5.71429E-05 | 0.0001 |
| 0.004833333 | 0.015166667 |
| 0.010666667 | 0.050666667 |
| 0.004625 | 0.011875 |
The file displayed a popup saying some data in the file was corrupt on first open.
Solved! Go to Solution.
As the error message said, the involved column in your calculation is text type. You must convert the values like "5.71429E-05" into numbers then change the data type for both columns into decimal number.
Regards,
After reviewing the measures further, there was another measure being used further down in the chain of calculations that was still of Format General. Changing this to decimal solved the issue. I am not sure why all the other calculations could work with this scientific format without the conversion and PercentileX.Inc could not (as it appears).
Now Resolved.
As the error message said, the involved column in your calculation is text type. You must convert the values like "5.71429E-05" into numbers then change the data type for both columns into decimal number.
Regards,
After reviewing the measures further, there was another measure being used further down in the chain of calculations that was still of Format General. Changing this to decimal solved the issue. I am not sure why all the other calculations could work with this scientific format without the conversion and PercentileX.Inc could not (as it appears).
Now Resolved.
Thanks, I had tried this already, using the modeling tab, in the formatting group, I changed the Format to Decimal number on all of the measures and fields related to the calculations I am using. It turns out that another measure in the Lower Middle measure was where the error was pointing. I navigated to the measure and changed the Formats of the Measure and the Measures in the divide calculation as well as surrounded them with a Value function call. This calculation still works as expected... When using it in the Percentile Function I still get the Text to Number error message even though all my Formats are in Decimal.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |