Hi all, I am trying to make a calculated metric which only applies to "Site Code = FR"
And it works correctly in this way.
However, the problem is it also applies to the Total Sum.
Please find the attached image below.
It should applies only to "B", not "A".
Could you help me to fix this or suggest better approach?
Thanks in advance!
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi Jenifer,
Thank you for the replies.
we used another calculated metric, which is
[Metric] - (Segment condition [Metric] x 0.4)
In this way, we could solve the issue.
Thank you!
I don't know if that is possible (at this time)... The total looks at all the data, and despite the equals value, basically when looking at all the data, somewhere in all the data, there are values that equal "fr", so therefore, it applies.
It's little things like this that sometimes make things challenging when using Workspace to pull reports... it would be nice if we had more control over how that "total" works, like being able to show total, or average, or when doing an If statement like your example, to show the de-duplicated total of the values from the rows rather than applying the calculation to the total itself...
However, do you need the total? Or is the problem just that the value causes confusion? If I do something like this, I will often just hide the total (if I can't get the right value, don't show it all at).
To hide the total, you can deselect "Show totals" using the gear on the column.
If you need the adjusted totals, this is really tricky..
If you were looking at something like occurrence or page views (something that you can add without worrying about needing to de-duplicate the values), you could re-do this report easily in Excel using Report Builder, cause you can just sum the adjusted rows...
I suppose with some complex logic you could do this in Report Builder for Visits with a few extra requests...
To try and get a de-duplicated total, I suppose you could create segments for Visits that only contain "fr", (you can apply the * 0.4 to the total number of visits), and then use another segment to pull Visits excluding "fr" only visits, (basically exclude the first segment), which should be your remaining visits which you can take at face value...
With a third pull with the language breakdown, you can then use Excel to translate the pulled breakdown data, and apply the * 0.4 to the FR row, then use the two "total" pulls from above to create a "Total" for the modified breakdowns...
So in theory:
I know neither of these is ideal...
Views
Replies
Total Likes
Hi Jenifer,
Thank you for the replies.
we used another calculated metric, which is
[Metric] - (Segment condition [Metric] x 0.4)
In this way, we could solve the issue.
Thank you!
I'm glad you figured out a solution
Views
Replies
Total Likes