Hey all,
I’m using a SQL Server datasource to track deploys and using AVG to have the average deployment frequency of the teams. It’s showing correct results for one team (pod) but when I select more than one pod or a project with more than one pod in the filter it’s showing a SUM of the averages instead of the AVG of averages:
1- For one pod (OK)
2 - For more than one pod (considerring that Pricing 1 and Pricing 2 pods have same results; the average for one or both selected should be the same result but it’s showing the sum):
As the example shows the average deployment freq is calculated correctly but the deployment freq by week is showing a sum of both pods.
This is the code for my Avg Deployment Freq measure (almost sure the problem isn’t there):
–annotations.group = Deployment Frequency
CASE WHEN [Time].CurrentHierarchyMember.Level.Name = ‘Month’
THEN
Avg(
ChildrenSet([Time].CurrentHierarchyMember),
[Measures].[Deployment Frequency]
)
WHEN [Time].CurrentHierarchyMember.Level.Name = ‘Week’
THEN
Avg(
ChildrenSet([Time].CurrentHierarchyMember),
[Measures].[Deployment Frequency]
)
ELSE
Avg(
ChildrenSet([Time].CurrentHierarchyMember),
[Measures].[Deployment Frequency]
)
END
Many thanks in advance, I’m getting the skills but its a journey not a sprint
Best,