I have a table visual grouped by several parameter controls. The formulas for period 1 and period 2 looks like this:
ifelse(
${MeasureSelect} = ‘Dollars’,
sumIf(SalesTotal, in(depletionmonth, ${P1DateInt})),
${MeasureSelect} = ‘Cases’,
sumIf(Cases, in(depletionmonth, ${P1DateInt})),
The date parameters are integers we link to the dataset. The issue I’m having is the table displays products with null sales for selected period as long as there has been sales in a prior period. I’ve tried null handling with a filter like :
ifelse(isNull({Period 1}) AND isNull({Period 2}), 0, 1) but this impacts totals for other metrics i’m using like rolling 12 month sales. Is there a way to control for this without impacting other metrics?

