I’m trying to get some LAC calculations to work but I’m hitting a wall. I have a viz that has a date-range filter and displays metrics of employees. One metric shows the % of Total Sales for each employee. I also have an Action Filter that allows users to filter on a specific employee to show the Sales details for that employee in another viz.
The denominator for the % Sales calc is TotNet :: sumover(Sum({Net Sales}),). But when the Action Filter is activated TotNet changes to the total for that employee. I’ve tried PRE_FILTER but no joy. What am I doing wrong?
Good morning (for me at least) Prantika. The analysis I’m working on is client data so I can’t upload it without first having to mock-up a suitable dataset. That said, I tried PRE_FILTER again this morning and it behaved completely differently than it did yesterday. Closer but still not correct. The analysis has 2 Filter Controls overall: Transaction Date Range and Store. Under those, there is the Action Filter for Employee. When I use the sumover(PRE_FILTER) it ignores all the filters and I get a total for all dates and stores. I just want the total for the specified date range and selected Store, of course. I’ve tried using a partitioned sumover: sumover(SUM(net_sales),[{employee}]) but that doesn’t work either. Any advice? I feel we’re close.
Hi @gprice,
Since we have not heard back, I’ll go ahead and mark as solved. However, if you have any remaining questions, feel free to create a new topic in the community and link this discussion for relevant information.