Forum Discussion
Calculate the difference between two columns (without hard coding in formula) in matrix
- Anonymous7 years ago
Hi dancarr22,
Index column is a custom column I created in query edit.
Since power bi data model not contains column index and row index, you need one index to let formula calculation dynamic based on current index.(such current -1 or current +1)
Date or numeric column can be used as index, text character current not support compare with math symbols.
If you only need to calculate on specific source, you can try to use switch function to define them as specific numeric as calculation index.
Regards,
Xiaoxin Sheng
Hi dancarr22,
Index column is a custom column I created in query edit.
Since power bi data model not contains column index and row index, you need one index to let formula calculation dynamic based on current index.(such current -1 or current +1)
Date or numeric column can be used as index, text character current not support compare with math symbols.
If you only need to calculate on specific source, you can try to use switch function to define them as specific numeric as calculation index.
Regards,
Xiaoxin Sheng
Thanks Xiaoxin