Hello!
I am attempting to create an index out of two beast modes. One is an aggregated measure that returns the percent share of impressions against the total group. The second is a count of assets to capture how many social videos have been published per each social platform. For example, I'll have two columns for TikTok that tells me the x% share of total impressions and % share of posted videos across all our social platforms.
My issue is I'm I try to calculate those measures into an index. Text to SQL doesn't seem to return anything that actually validates or even returns what I'm looking for. I attempted the below calculations. Would anyone know what is wrong with my formula? Also, if this is even possible to calculate in a beast mode rather than integrating in the data flow?
% Impressions Share: IFNULL(sum(LFM_CONTENT_IMPRESSIONS_V8
)/ NULLIF(SUM(SUM(LFM_CONTENT_IMPRESSIONS_V8
)) over (), 0), 0)
% Posts Share: IFNULL(sum(Post Count
)/ NULLIF(SUM(SUM(Post Count
)) over (), 0), 0)
Index calculation I attempted: (
IFNULL(sum(LFM_CONTENT_IMPRESSIONS_V8
)/ NULLIF(SUM(SUM(LFM_CONTENT_IMPRESSIONS_V8
)) over (), 0), 0) +
IFNULL(sum(Post Count
)/ NULLIF(SUM(SUM(Post Count
)) over (), 0), 0)
*100)