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

Custom expression

I have a requirement where i need to calculate based on dimension values in expression.

I have tried to use aggr function but still can't get result what i wanted. I am not sure where i am going wrong.

What i need is, say for AU for PN_Status = 'Z' , value should be sum max values for both X & Y.  i.e. , Z = 50.

In attached screen shot

Appreciate your help.

12 Replies
tresesco
MVP
MVP

For front end solution, check this:

Expression to be used:

If ( PN_STATUS='Z', RangeSum(max( total <COUNTRY> If(PN_STATUS='X',EXPOSURE)), max(total <COUNTRY> If(PN_STATUS='Y',EXPOSURE))),

  Sum(EXPOSURE)

  )

PFA

Anil_Babu_Samineni

Or This miranrai

I've done simple add Dimension called EXPOSURE with short Expression Sum(EXPOSURE)

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
miranrai
Contributor III
Contributor III
Author

Thank you Tresesco