My data looks like this:
endtimestamp|account|volume|pk|var1
jan-1, conosco, 123, 13231, a
jan-1, conosco, 123, 13231, b
jan-1, conosco, 123, 13231, c
jan-1, acme, 1323, 2123123, a
jan-1, acme, 1323, 2123123, b
jan-1, acme, 1323, 2123123, c
jan-2, conosco, 128, 131231, a
jan-2, conosco, 128, 131231, b
jan-2, conosco, 128, 131231, c
jan-2, acme, 1329, 31323, a
jan-2, acme, 1329, 31323, b
jan-2, acme, 1329, 31323, c
...
I have a calculation to get the sum based upon filter
Call it fixed_sum_volume
sum({FIXED [pk], [account]: max([volume])})
I have two filters
endtimestamp
account
When the date range Jan 1
is selected and the account ACME
is selected
fixed_sum_of_volume
will give me the sum of the date range - 1323
I need to divide this by the average of all time and i cannot figure out how to do this or if it is even possible with tableau.
Seems like it would be easy but i have been grappling with this for a while.
All in all, i am looking for:
avg(filtered volume)/avg(non filtered volume)