Xray test executed filtering by Test Plan s Label

Hi @gustavo_salvato,

The calculation is based on measures “Xray Tests executed”, which considers only completed tests.
If you would like to see all tests of Tests Execution (completed, in progress, and scheduled tests), you might want to use measures “Xray Tests with executions”.

Sum(
  --filter set of Test plans
  Filter(
    DescendantsSet([Xray Test Plan].CurrentMember,[Xray Test Plan].[Plan]),
    --Test Plan issue has selected Label
    DefaultContext((
      [Measures].[Issues created],
      [Issue].[Issue].GetMemberByKey(
      [Xray Test Plan].CurrentMember.KEY),
      [Label].CurrentHierarchyMember
    )) > 0 ),
  --sum up test executed runs ignoring Label assigned to Test Plan
  ([Measures].[Xray Tests with executions],
  [Label].CurrentHierarchy.DefaultMember)
)

Description of each Xrray measure is here: Xray Test Management

Best,
Zane / support@eazyBI.com