What is the best way to add an Average line to Multi Line LIne Graph? Some cards do this automatically, wondering how to format the data, card properties to get the Average line to appear.
I'm assuming you have a series selected. You could probably create a BeastMode for each of the series members and then create one that contains the average. I think it would look something like this:
SUM(CASE WHEN `Dimension` = 'Brand A' THEN `Metric Total` ELSE 0 END)
SUM(CASE WHEN `Dimension` = 'Brand B' THEN `Metric Total` ELSE 0 END)
Avg of All Brands
Let me know if this makes sense.
Was able to get it to work by doing the following.
Build beast mode calculation per each line using case
CASEWhen `Event` LIKE '%In' then 1 else 0 end
Created Beast mode to do the difference between in, out to get a net.
Switched from Multiline to single line and added each beast mode to the series section so could display in, out and net on the same graph.