How to do it...

To complete this recipe, do the following:

  1. Create the following measure:
Covariance = 
VAR __Table = 'R04_Table'
VAR __Count = COUNTROWS(__Table)
VAR __AvgA = AVERAGEX(__Table,[A])
VAR __AvgB = AVERAGEX(__Table,[B])
VAR __Table1 =
ADDCOLUMNS(
__Table,
"__Covariance",
DIVIDE(
([A] - __AvgA) * ([B]) - __AvgB),
__Count
)
)
RETURN
SUMX(__Table1,[__Covariance])
  1. On a Report page, create a Table visualization and place the t column from the R03_Table table as well as the RK4 measure into the Fields area of the visualization.
  1. On the same Report page, create a Line chart visualization and place the t column from the R03_Table table into the Axis area and the RK4 measure into the Values area of the visualization.