Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I have value field called 'Sales' and two category fields, for example 'CategoryA' and 'CategoryB'.
I want to include the expression sum(Sales) but only where CategoryA OR CategoryB equal "ProductA"
What would the set analysis be?
Thanks
A
Try this
sum({<[XL Date]={"<=$(vLatestReturnsDate)"},[Ledger Type]={"Actual"},[Commission Of]={"Salads"}>+
<[XL Date]={"<=$(vLatestReturnsDate)"},[Ledger Type]={"Actual"},[Trading Of]={"Salads"}>}[Hds/Kg KPI])
Try this:
Sum({<Category = {'CategoryA', 'CategoryB'}>}Sales)
Hi
try like this
if (CategoryA ='ProductA' or CategoryB='ProductA', sum(Sales))
Try this
=sum({<Catageory={'CategoryA ',' CategoryB'}>}sales)
The fields are CategoryA and CategoryB and I want to include when the value in either CategoryA or CategoryB is ProductA
Hi
I'd rather not use if statements
May be this:
Sum({<CategoryA = {'ProductA'}> + <CategoryB = {'ProductA'}>}Sales)
try
sum({<CategoryA='ProductA' or CategoryB='ProdcutA' >}sales)
Try
Sum({<CategoryA = {'ProductA'}>}Sales)+Sum({<CategoryB = {'ProductA'}>}Sales)
Sum({<CategoryA ={'Product A'} > + <CategoryB={'Product A'}>}Sales)