The first example is about a "sort by" object that establish the sorting order of the graphic by the picked field. The video shows the condition applied to the graphic but it do not show how to built the "sort by" object.
Any idea how to do it? or where i can find the hockey demo to see it?
The SortByMetrics object is just a filter pane object resized so only dimension title shows and the values show up in a drop down list. The values of the SortByMetrics dimension probably come from a small inline table created in the script.