Forum Discussion
Maximum difference between two tables
- 6 years ago
Anonymous
try smth like
CALCULATE( MAXX(Merge1,abs(Merge1[Measured value] - ModelResults[Calculated Value])), ALLEXCEPT(Merge1, Merge1[Sensor ID]) )
While it would be better to append your table (with predicted/measured with same column name), and pivot that column out to get predicted and measured on same rows, please try this approach as a Measure instead of a calculated column.
Max Difference = MAXX(MeasuredTable, MeasuredTable[MeasuredValue] - RELATED(PredictedTable[PredictedValue]))
This assumes there is a 1:1 relationship (or Many:1) between the Measured and Predicted tables. Use the measure in a table visual with your SensorID column from the MeasuredTable. You could also use the measure in a line chart to visualize the different at each hour.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
- Anonymous6 years agoNot applicable
Thanks Mahoneypat, but it seems the related function does not accept any column from my related table