Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Temp table inside measure

Hi all, 

To explain my problem we want to create prediction for EOM conversion rate (CR), 

What my boss wants is basically

CR based on (last 3 months by source  * ("views /day this month by source" * number of days))/ (Expected views this month)

So CR is not just clicks/ views but weighted average based on source, 

 

If slicer would be on monthly basis, This could be solved pretty easily with calculated table with 

source, month, "CR over last 3 months"

 

however requirements changed and slicer is based on "between days" so it doesn't make sense anymore to have bloated table with so many rows (365 days* 150 sources) 

and also there are some other complications that are solved in current measures but it would be hard to be address them in calculated table (filters, relationships...)

 

For other reasons and measures we have 3 tables for that 

Click fact table

SourceDateClicks
Facebook 11/06/202016
Facebook 12/06/202020
Reddit 05/06/20202
Twitter06/07/20201

 

Views fact table

SourceDateViews
Facebook 11/06/202043
Facebook 12/06/202055
Reddit 05/06/202011
Twitter06/07/20205

 

Source dim table

Source
Facebook 
Facebook 
Reddit 
Twitter

I hope somebody understands what I tried to explain. 

Thanks. 

3 Replies