Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Is it possible to insert an actual Excel formula with Table.AddColumn() in Power Query?
I want to generate a new table (Table B) with 3 columns, to show correlations between the columns in Table A. For example:
Fig: Table B.
I want the rows in the "coefficient" column to have the Excel formula =CORREL(INDIRECT("TableA[" & A2 & "]"), INDIRECT("TableA[" & B2 & "]")). I need to do this because some column rows in Table A are empty and I can't find a way to calculate correlations in M or DAX when there are empty rows.
Solved! Go to Solution.
Check this blog:
Correlation coefficient - Microsoft Power BI Community
But I would recommend you to calculate the coefficient in excel then import the result table into power bi.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
Check this blog:
Correlation coefficient - Microsoft Power BI Community
But I would recommend you to calculate the coefficient in excel then import the result table into power bi.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
"I can't find a way to calculate correlations in M"
What have you tried? Usually custom generator functions can handle scenarios like these.
Transform Column using custom function in Power Query (part 2) | Excel City
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |