Power Query SINH Function: How to Calculate Hyperbolic Sine
In this article
The POWER QUERY SINH function calculates the hyperbolic sine of a number, useful in mathematical modeling, statistics, and engineering calculations within Power Query. It requires no external tools or add-ins and works directly in the Power Query Editor in Excel or Power BI. Simply apply it to a numeric column to transform values into their hyperbolic sine equivalents.
What You'll Need
- Microsoft Excel 2016 or later, or Microsoft Power BI Desktop
- A data table with at least one numeric column containing the values you want to transform
- Access to the Power Query Editor (available via Data > Get & Transform Data in Excel or Edit Queries in Power BI)
Step-by-Step
- Open your Excel workbook or Power BI Desktop file containing the data you want to transform.
- Select the table or data source you wish to modify, then navigate to the Data tab and click Get & Transform Data > From Table/Range (in Excel) or click Edit Queries (in Power BI).
- The Power Query Editor will open, displaying your data in a table format. Ensure the column you want to apply SINH to contains only numeric values—text, nulls, or errors will cause the function to fail.
- Click on the column header of the numeric column you want to transform. This selects the entire column.
- In the Add Column tab, click Custom Column. A dialog box will appear.
- In the New column name field, type a descriptive name like
SINH_ValueorHyperbolicSine. - In the Custom column formula box, type:
Number.Sinh([YourColumnName]). ReplaceYourColumnNamewith the actual name of your selected column (e.g.,Number.Sinh([Temperature])). - Click OK. A new column will appear with the hyperbolic sine values of each number in the original column.
- Verify the results by hovering over a few cells in the new column to confirm they are numeric and not errors.
- If the results look correct, click Close & Load (Excel) or Close & Apply (Power BI) to return the updated table to your worksheet or report.
Common Mistakes
- Using text or non-numeric values in the source column—Power Query returns an error if the input is not a number.
- Typing the column name incorrectly in the formula—column names are case-sensitive and must match exactly, including spaces and underscores.
- Forgetting to wrap the column reference in square brackets—
Number.Sinh(Temperature)will fail; it must beNumber.Sinh([Temperature]). - Applying SINH to very large numbers without considering overflow—values beyond approximately ±710 will return Infinity, which may distort analysis.
- Assuming SINH works on dates or times—SINH only accepts numbers, not date/time types. Convert dates to numeric values first if needed.
Tips
- Use the Transform > Format > Number option to control decimal places in the output column for cleaner display.
- Combine SINH with other mathematical functions like
Number.AbsorNumber.Roundto clean up results—e.g.,Number.Round(Number.Sinh([Value]), 4)to limit to four decimal places. - Test SINH on a small sample first—create a copy of your table and apply the function to just 10 rows to verify behavior before scaling.
- Remember that SINH(x) = (e^x - e^(-x))/2, so negative inputs produce negative outputs, and zero returns zero.
- If you’re modeling exponential growth or wave behavior, SINH often pairs well with COSH (hyperbolic cosine) or TANH for full analysis.
- Use the Data Type dropdown in the column header to ensure the new column is set to Decimal Number, not Text.
Troubleshooting
- Formula error: "Expression.Error: We cannot apply operator SINH to types Text and Number" — This means your column contains non-numeric data. Go back to your source table, filter out blank or text rows, or use
Table.TransformColumnswithNumber.Fromto convert text to numbers before applying SINH. - Column shows "null" or "error" for all rows — Check that your column name in the formula exactly matches the displayed column header in the Power Query Editor. Even a trailing space can break it.
- Results are "Infinity" — Your input values are too large. Use
Number.Abs([Value]) < 710in a conditional column to filter or flag large values before applying SINH. - Missing "Custom Column" option — Ensure you are in the Power Query Editor and have selected a column. The button may be grayed out if no column is selected or if you're viewing a merged query.
- Changes don't appear in Excel/Power BI after clicking Close & Load — Refresh the data: in Excel, right-click the table and choose Refresh; in Power BI, click Refresh in the Home tab. Also check if you have multiple queries—ensure you're loading the correct one.
Frequently Asked Questions
Can I use SINH with negative numbers?
Yes. SINH is an odd function, meaning SINH(-x) = -SINH(x). Negative inputs return negative outputs, and SINH(0) = 0.
Does SINH work in Power BI Service, not just Desktop?
No. The SINH function is only available during data transformation in Power BI Desktop. Once loaded, the transformed data is stored and rendered in the service, but you cannot edit or apply new SINH formulas directly in the web version.
What’s the difference between SINH and SIN in Power Query?
SIN calculates the trigonometric sine of an angle in radians, while SINH calculates the hyperbolic sine, which is based on exponential functions. They are mathematically distinct and serve different modeling purposes.
Can I apply SINH to multiple columns at once?
Not directly with one click. You must create a custom column for each numeric column you want to transform. However, you can duplicate the custom column step and edit the column reference for each target.
Why does SINH return Infinity for some values?
Because SINH grows exponentially. For inputs larger than approximately 710 (or less than -710), the result exceeds the maximum representable floating-point number, causing overflow to Infinity.
Is SINH available in Excel Online?
No. Power Query in Excel Online has limited functions. Use SINH only in the full desktop version of Excel or Power BI Desktop.