Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
scjma
Contributor
Contributor

Creating an expression that some rows use the select list box but other rows use the whole dataset

I need to create an expression on a pivot table that will calculate some rows based on the users selection but other rows in the same position on the pivot are not to change depending on the  NlAccountReportCategoryTypeID=5. This is the expression I am trying to use.

Any help would be grateful.

if(NLAccountReportCategoryTypeID=5,sum([ActualValue*-1]),sum({1<YearEnddate={$(=max(YearEnddate))}>}[ActualValue*-1]))

ScreenDump.png

 

Labels (4)
1 Reply
chrismarlow
Specialist II
Specialist II

Hi,

You should be able to use union operator on the sets (I had to reformat the max date as well);

20190322_1.png

Cheers,

Chris.