Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
anushree1
Specialist II
Specialist II

Custom Totals on Table

Hi,

I am trying to create expression total on a Table object , and happened to use the below expression to obtain the same

if(Dimensionality()=0,Column(1)/Column(2)-1, Column(1)/Column(2)-1)

But this results in - as totals .

Can someone help me on the same

Please Note: Column(1) and Column(2) are derived using Valuelist Expressions

1 Solution

Accepted Solutions
anushree1
Specialist II
Specialist II
Author

HI Vegar,

Thanks for the reply.

As I wanted to to YOY Calculation on the column and considering that column 1 and column 2 were derived using Value list expressions , the available options on total were limited to sum,avg,count,min and max but i wanted the expression calculation hence was trying for it using the if construct.

Now I changed the first part of if to have valuelist calculations with a small tweak and it started working.

Thanks for your time

View solution in original post

3 Replies
anushree1
Specialist II
Specialist II
Author

HI,

Any suggestions on this?

@Vegar 

Vegar
MVP
MVP

Do you really need your if statement as your two conditional statements are identical?

if(Dimensionality()=0,
Column(1)/Column(2)-1,
Column(1)/Column(2)-1
)
anushree1
Specialist II
Specialist II
Author

HI Vegar,

Thanks for the reply.

As I wanted to to YOY Calculation on the column and considering that column 1 and column 2 were derived using Value list expressions , the available options on total were limited to sum,avg,count,min and max but i wanted the expression calculation hence was trying for it using the if construct.

Now I changed the first part of if to have valuelist calculations with a small tweak and it started working.

Thanks for your time