Forum Discussion
Divide Function
- 4 years ago
Sheref_Morad
Here is your fil with the solution https://www.dropbox.com/t/CChylr4UPd28RtxH
Measures are automatically wrapped with CALCULATE which forces context transition. On the other hand using the formulas directly will be extremely complicated. Therefore, use can do the following:Predicted Income = Divide ( RELATED ( 'Regression Table'[y] ) - CALCULATE ( [b], ALL ( 'Regression Table' ) ), CALCULATE ( [m], ALL ( 'Regression Table' ) ) )This shall solve your problem.
Adding columns to the customer table which simply calculate [b] and [m] both return blank results, hence the blank result in your divide formula. You can use CALCULATE( [b], REMOVEFILTERS('Customer List')), which returns a value, but without a deep understanding of your model I don't know if there are only specific columns on Customer List which should have filters removed, or if there are other filters on other tables which should be removed.