How can I refer to any table column in a dynamic fashion:
For example, I have several fields in my table (tblSales) - Revenue and Cost. I want to be able to dynamically type in a field value in A1 that would automatically change the contents of the formula in A2.
Similar to the following example:
A1 = "Revenue"
A2 = AVERAGE(tblSales[A1]) such that the A2 formula really shows AVERAGE(tblSales[Revenue])
A1 = "Cost"
A2 = AVERAGE(tblSales[A1]) such that the A2 formula really shows AVERAGE(tblSales[Cost])
It doesn't allow me to do this. Any suggestions?
For example, I have several fields in my table (tblSales) - Revenue and Cost. I want to be able to dynamically type in a field value in A1 that would automatically change the contents of the formula in A2.
Similar to the following example:
A1 = "Revenue"
A2 = AVERAGE(tblSales[A1]) such that the A2 formula really shows AVERAGE(tblSales[Revenue])
A1 = "Cost"
A2 = AVERAGE(tblSales[A1]) such that the A2 formula really shows AVERAGE(tblSales[Cost])
It doesn't allow me to do this. Any suggestions?