As described in Functions for topology report expressions, you can use these XPath functions in the row definition for a report data set.
Return type: ecore:EAttribute
Return type: core:Constraint
Return type: core:Unit
Return type: ecore:EAttribute
For this function, you can use the return type core:Unit. To retrieve more specific information about the final realization units (such as an attribute that is defined on that unit type rather than on the core unit type), you can set the return type to the same value that you used for the dmoType parameter. You can use the same that you used in the dmoType parameter because all of the units that this function returns will be of that type or a subtype.

getFinalRealizationByType(//*, 'os:OperatingSystemUnit', 'false')In this case, the function returns the three concrete units, because they are the final realization of the units of the type specified in the parameters.

getFinalRealizationByType(//*, 'os:OperatingSystemUnit', 'false')This expression returns the generic Linux unit in topology A because the XPath expression //* refers to the topology that is listed in the data source. If you want to retrieve the final realization of the generic operating system in topology B, you must pass the XPath location of topology B, as in the following example:
getFinalRealizationByType(resolveURI('platform:/resource/MyProject/topologies/com/mycompany/B.topology#/'),
'os:OperatingSystemUnit', 'false')
In this case, the function
returns the concrete Redhat Linux unit
from topology B.Return type: notation:Diagram
Return type: core:Unit
Return type: core:Unit
Return type: core:Topology
Return type: core:Unit
Return type: core:Unit
Return type: core:Unit
Return type: core:Unit
Return type: core:Unit
Return type: core:Unit
Return type: core:Unit
Return type: core:ConstraintLink
Return type: notation:Diagram
instanceOf(//*, 'core:Unit')Similarly, to retrieve every realization link in the topology, use this expression:
instanceOf(//*, 'core:RealizationLink')
The return type for this function is the same type as the dmoType parameter.